Export PDF for two printer - one PDF with just the pictures, the other one with the text
up vote
4
down vote
favorite
Do you know a possibility how to export a PDF, that has just blank space where the graphics should be? (And the other way round)
Why do I need this? I have a black and white laser printer and an inkjet printer.
I would love to use the black and white laser printer for the text, take the printed paper and put it in the inkjet printer to get perfect colorful pictures in my printings.
Or is there a other possibility?
graphics pdf printing ghostscript export
add a comment |
up vote
4
down vote
favorite
Do you know a possibility how to export a PDF, that has just blank space where the graphics should be? (And the other way round)
Why do I need this? I have a black and white laser printer and an inkjet printer.
I would love to use the black and white laser printer for the text, take the printed paper and put it in the inkjet printer to get perfect colorful pictures in my printings.
Or is there a other possibility?
graphics pdf printing ghostscript export
1
Your inkjet won't like it. (They almost all say not to put printed paper back through.)
– cfr
Apr 16 '15 at 1:40
LaTeX has thephantom{text}
command which leaves 'text' blank and only reserves the space. Maybe you could utilize this to create the graphics-only version.
– Uwe Ziegenhagen
Apr 16 '15 at 4:02
For omitting the figures, you might want to look at Placeholder for figure/includegraphics. Perhaps you could try modifying the example in the answer withpicins
package.
– Fato39
Apr 16 '15 at 7:34
I could also use the inkjet first and then the laser :).
– TimK
Apr 16 '15 at 9:31
Welcome to TeX.SX! Usually, we don't put a greeting or a “thank you” in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Accepting and upvoting answers is the preferred way here to say “thank you” to users who helped you.
– Martin Schröder
Apr 21 '15 at 17:55
add a comment |
up vote
4
down vote
favorite
up vote
4
down vote
favorite
Do you know a possibility how to export a PDF, that has just blank space where the graphics should be? (And the other way round)
Why do I need this? I have a black and white laser printer and an inkjet printer.
I would love to use the black and white laser printer for the text, take the printed paper and put it in the inkjet printer to get perfect colorful pictures in my printings.
Or is there a other possibility?
graphics pdf printing ghostscript export
Do you know a possibility how to export a PDF, that has just blank space where the graphics should be? (And the other way round)
Why do I need this? I have a black and white laser printer and an inkjet printer.
I would love to use the black and white laser printer for the text, take the printed paper and put it in the inkjet printer to get perfect colorful pictures in my printings.
Or is there a other possibility?
graphics pdf printing ghostscript export
graphics pdf printing ghostscript export
edited 3 hours ago
Kurt Pfeifle
2,32421628
2,32421628
asked Apr 16 '15 at 0:31
TimK
3311213
3311213
1
Your inkjet won't like it. (They almost all say not to put printed paper back through.)
– cfr
Apr 16 '15 at 1:40
LaTeX has thephantom{text}
command which leaves 'text' blank and only reserves the space. Maybe you could utilize this to create the graphics-only version.
– Uwe Ziegenhagen
Apr 16 '15 at 4:02
For omitting the figures, you might want to look at Placeholder for figure/includegraphics. Perhaps you could try modifying the example in the answer withpicins
package.
– Fato39
Apr 16 '15 at 7:34
I could also use the inkjet first and then the laser :).
– TimK
Apr 16 '15 at 9:31
Welcome to TeX.SX! Usually, we don't put a greeting or a “thank you” in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Accepting and upvoting answers is the preferred way here to say “thank you” to users who helped you.
– Martin Schröder
Apr 21 '15 at 17:55
add a comment |
1
Your inkjet won't like it. (They almost all say not to put printed paper back through.)
– cfr
Apr 16 '15 at 1:40
LaTeX has thephantom{text}
command which leaves 'text' blank and only reserves the space. Maybe you could utilize this to create the graphics-only version.
– Uwe Ziegenhagen
Apr 16 '15 at 4:02
For omitting the figures, you might want to look at Placeholder for figure/includegraphics. Perhaps you could try modifying the example in the answer withpicins
package.
– Fato39
Apr 16 '15 at 7:34
I could also use the inkjet first and then the laser :).
– TimK
Apr 16 '15 at 9:31
Welcome to TeX.SX! Usually, we don't put a greeting or a “thank you” in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Accepting and upvoting answers is the preferred way here to say “thank you” to users who helped you.
– Martin Schröder
Apr 21 '15 at 17:55
1
1
Your inkjet won't like it. (They almost all say not to put printed paper back through.)
– cfr
Apr 16 '15 at 1:40
Your inkjet won't like it. (They almost all say not to put printed paper back through.)
– cfr
Apr 16 '15 at 1:40
LaTeX has the
phantom{text}
command which leaves 'text' blank and only reserves the space. Maybe you could utilize this to create the graphics-only version.– Uwe Ziegenhagen
Apr 16 '15 at 4:02
LaTeX has the
phantom{text}
command which leaves 'text' blank and only reserves the space. Maybe you could utilize this to create the graphics-only version.– Uwe Ziegenhagen
Apr 16 '15 at 4:02
For omitting the figures, you might want to look at Placeholder for figure/includegraphics. Perhaps you could try modifying the example in the answer with
picins
package.– Fato39
Apr 16 '15 at 7:34
For omitting the figures, you might want to look at Placeholder for figure/includegraphics. Perhaps you could try modifying the example in the answer with
picins
package.– Fato39
Apr 16 '15 at 7:34
I could also use the inkjet first and then the laser :).
– TimK
Apr 16 '15 at 9:31
I could also use the inkjet first and then the laser :).
– TimK
Apr 16 '15 at 9:31
Welcome to TeX.SX! Usually, we don't put a greeting or a “thank you” in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Accepting and upvoting answers is the preferred way here to say “thank you” to users who helped you.
– Martin Schröder
Apr 21 '15 at 17:55
Welcome to TeX.SX! Usually, we don't put a greeting or a “thank you” in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Accepting and upvoting answers is the preferred way here to say “thank you” to users who helped you.
– Martin Schröder
Apr 21 '15 at 17:55
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
So you want to
"...know a possibility how to export a PDF, that has just blank space where the graphics should be? (And the other way round)"
Well, I don't know how to reach that point directly. But I know a detour with three backdoors which get you were you want:
First, the detour: Export to PDF just as normal. The result will be no blank space where the graphics should be. No, there will be a graphics where the graphics should be.
Second, the first backdoor: Make sure you have a Ghostscript version v9.16 or newer installed. Then run:
gs -o onlytext.pdf -sDEVICE=pdfwrite -dFILTERIMAGE -dFILTERVECTOR input.pdf
The
-dFILTERIMAGE
parameter will remove all raster images from your PDF. The-dFILTERVECTOR
param will remove all vector drawings or other line art from your PDF. What remains are all the textual components on all pages.
Third, the second backdoor: Use the same Ghostscript and run:
gs -o onlyimage.pdf -sDEVICE=pdfwrite -dFILTERTEXT -dFILTERVECTOR input.pdf
The
-dFILTERTEXT
parameter will remove all text parts from your PDF. The-dFILTERVECTOR
param you're already familiar with.... What remains are the raster image components on all pages.
Fourth, the third backdoor: Again, run Ghostscript:
gs -o onlyvector.pdf -sDEVICE=pdfwrite -dFILTERTEXT -dFILTERIMAGE input.pdf
You guess what this does? What remains are only the vector components on all pages.
Of course, you could also use only one of the params to remove one of the element types from the PDF and retain the other two.
Example output
Here is an example document which I use to demo the options. Admittedly, the document wasn't created with LaTeX, so bear with me...
Screenshot of original PDF page containing "image", "vector" and "text" elements.
Running the following 6 commands will create all 6 possible variations of remaining contents:
gs -o noIMG.pdf -sDEVICE=pdfwrite -dFILTERIMAGE input.pdf
gs -o noTXT.pdf -sDEVICE=pdfwrite -dFILTERTEXT input.pdf
gs -o noVCTR.pdf -sDEVICE=pdfwrite -dFILTERVECTOR input.pdf
gs -o onlyTXT.pdf -sDEVICE=pdfwrite -dFILTERVECTOR -dFILTERIMAGE input.pdf
gs -o onlyIMG.pdf -sDEVICE=pdfwrite -dFILTERVECTOR -dFILTERTEXT input.pdf
gs -o onlyVCT.pdf -sDEVICE=pdfwrite -dFILTERIMAGE -dFILTERTEXT input.pdf
The following image illustrates the results:
Top row, from left: all "text" removed; all "images" removed; all "vectors" removed. Bottom row, from left: only "text" kept; only "images" kept; only "vectors" kept.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
So you want to
"...know a possibility how to export a PDF, that has just blank space where the graphics should be? (And the other way round)"
Well, I don't know how to reach that point directly. But I know a detour with three backdoors which get you were you want:
First, the detour: Export to PDF just as normal. The result will be no blank space where the graphics should be. No, there will be a graphics where the graphics should be.
Second, the first backdoor: Make sure you have a Ghostscript version v9.16 or newer installed. Then run:
gs -o onlytext.pdf -sDEVICE=pdfwrite -dFILTERIMAGE -dFILTERVECTOR input.pdf
The
-dFILTERIMAGE
parameter will remove all raster images from your PDF. The-dFILTERVECTOR
param will remove all vector drawings or other line art from your PDF. What remains are all the textual components on all pages.
Third, the second backdoor: Use the same Ghostscript and run:
gs -o onlyimage.pdf -sDEVICE=pdfwrite -dFILTERTEXT -dFILTERVECTOR input.pdf
The
-dFILTERTEXT
parameter will remove all text parts from your PDF. The-dFILTERVECTOR
param you're already familiar with.... What remains are the raster image components on all pages.
Fourth, the third backdoor: Again, run Ghostscript:
gs -o onlyvector.pdf -sDEVICE=pdfwrite -dFILTERTEXT -dFILTERIMAGE input.pdf
You guess what this does? What remains are only the vector components on all pages.
Of course, you could also use only one of the params to remove one of the element types from the PDF and retain the other two.
Example output
Here is an example document which I use to demo the options. Admittedly, the document wasn't created with LaTeX, so bear with me...
Screenshot of original PDF page containing "image", "vector" and "text" elements.
Running the following 6 commands will create all 6 possible variations of remaining contents:
gs -o noIMG.pdf -sDEVICE=pdfwrite -dFILTERIMAGE input.pdf
gs -o noTXT.pdf -sDEVICE=pdfwrite -dFILTERTEXT input.pdf
gs -o noVCTR.pdf -sDEVICE=pdfwrite -dFILTERVECTOR input.pdf
gs -o onlyTXT.pdf -sDEVICE=pdfwrite -dFILTERVECTOR -dFILTERIMAGE input.pdf
gs -o onlyIMG.pdf -sDEVICE=pdfwrite -dFILTERVECTOR -dFILTERTEXT input.pdf
gs -o onlyVCT.pdf -sDEVICE=pdfwrite -dFILTERIMAGE -dFILTERTEXT input.pdf
The following image illustrates the results:
Top row, from left: all "text" removed; all "images" removed; all "vectors" removed. Bottom row, from left: only "text" kept; only "images" kept; only "vectors" kept.
add a comment |
up vote
1
down vote
So you want to
"...know a possibility how to export a PDF, that has just blank space where the graphics should be? (And the other way round)"
Well, I don't know how to reach that point directly. But I know a detour with three backdoors which get you were you want:
First, the detour: Export to PDF just as normal. The result will be no blank space where the graphics should be. No, there will be a graphics where the graphics should be.
Second, the first backdoor: Make sure you have a Ghostscript version v9.16 or newer installed. Then run:
gs -o onlytext.pdf -sDEVICE=pdfwrite -dFILTERIMAGE -dFILTERVECTOR input.pdf
The
-dFILTERIMAGE
parameter will remove all raster images from your PDF. The-dFILTERVECTOR
param will remove all vector drawings or other line art from your PDF. What remains are all the textual components on all pages.
Third, the second backdoor: Use the same Ghostscript and run:
gs -o onlyimage.pdf -sDEVICE=pdfwrite -dFILTERTEXT -dFILTERVECTOR input.pdf
The
-dFILTERTEXT
parameter will remove all text parts from your PDF. The-dFILTERVECTOR
param you're already familiar with.... What remains are the raster image components on all pages.
Fourth, the third backdoor: Again, run Ghostscript:
gs -o onlyvector.pdf -sDEVICE=pdfwrite -dFILTERTEXT -dFILTERIMAGE input.pdf
You guess what this does? What remains are only the vector components on all pages.
Of course, you could also use only one of the params to remove one of the element types from the PDF and retain the other two.
Example output
Here is an example document which I use to demo the options. Admittedly, the document wasn't created with LaTeX, so bear with me...
Screenshot of original PDF page containing "image", "vector" and "text" elements.
Running the following 6 commands will create all 6 possible variations of remaining contents:
gs -o noIMG.pdf -sDEVICE=pdfwrite -dFILTERIMAGE input.pdf
gs -o noTXT.pdf -sDEVICE=pdfwrite -dFILTERTEXT input.pdf
gs -o noVCTR.pdf -sDEVICE=pdfwrite -dFILTERVECTOR input.pdf
gs -o onlyTXT.pdf -sDEVICE=pdfwrite -dFILTERVECTOR -dFILTERIMAGE input.pdf
gs -o onlyIMG.pdf -sDEVICE=pdfwrite -dFILTERVECTOR -dFILTERTEXT input.pdf
gs -o onlyVCT.pdf -sDEVICE=pdfwrite -dFILTERIMAGE -dFILTERTEXT input.pdf
The following image illustrates the results:
Top row, from left: all "text" removed; all "images" removed; all "vectors" removed. Bottom row, from left: only "text" kept; only "images" kept; only "vectors" kept.
add a comment |
up vote
1
down vote
up vote
1
down vote
So you want to
"...know a possibility how to export a PDF, that has just blank space where the graphics should be? (And the other way round)"
Well, I don't know how to reach that point directly. But I know a detour with three backdoors which get you were you want:
First, the detour: Export to PDF just as normal. The result will be no blank space where the graphics should be. No, there will be a graphics where the graphics should be.
Second, the first backdoor: Make sure you have a Ghostscript version v9.16 or newer installed. Then run:
gs -o onlytext.pdf -sDEVICE=pdfwrite -dFILTERIMAGE -dFILTERVECTOR input.pdf
The
-dFILTERIMAGE
parameter will remove all raster images from your PDF. The-dFILTERVECTOR
param will remove all vector drawings or other line art from your PDF. What remains are all the textual components on all pages.
Third, the second backdoor: Use the same Ghostscript and run:
gs -o onlyimage.pdf -sDEVICE=pdfwrite -dFILTERTEXT -dFILTERVECTOR input.pdf
The
-dFILTERTEXT
parameter will remove all text parts from your PDF. The-dFILTERVECTOR
param you're already familiar with.... What remains are the raster image components on all pages.
Fourth, the third backdoor: Again, run Ghostscript:
gs -o onlyvector.pdf -sDEVICE=pdfwrite -dFILTERTEXT -dFILTERIMAGE input.pdf
You guess what this does? What remains are only the vector components on all pages.
Of course, you could also use only one of the params to remove one of the element types from the PDF and retain the other two.
Example output
Here is an example document which I use to demo the options. Admittedly, the document wasn't created with LaTeX, so bear with me...
Screenshot of original PDF page containing "image", "vector" and "text" elements.
Running the following 6 commands will create all 6 possible variations of remaining contents:
gs -o noIMG.pdf -sDEVICE=pdfwrite -dFILTERIMAGE input.pdf
gs -o noTXT.pdf -sDEVICE=pdfwrite -dFILTERTEXT input.pdf
gs -o noVCTR.pdf -sDEVICE=pdfwrite -dFILTERVECTOR input.pdf
gs -o onlyTXT.pdf -sDEVICE=pdfwrite -dFILTERVECTOR -dFILTERIMAGE input.pdf
gs -o onlyIMG.pdf -sDEVICE=pdfwrite -dFILTERVECTOR -dFILTERTEXT input.pdf
gs -o onlyVCT.pdf -sDEVICE=pdfwrite -dFILTERIMAGE -dFILTERTEXT input.pdf
The following image illustrates the results:
Top row, from left: all "text" removed; all "images" removed; all "vectors" removed. Bottom row, from left: only "text" kept; only "images" kept; only "vectors" kept.
So you want to
"...know a possibility how to export a PDF, that has just blank space where the graphics should be? (And the other way round)"
Well, I don't know how to reach that point directly. But I know a detour with three backdoors which get you were you want:
First, the detour: Export to PDF just as normal. The result will be no blank space where the graphics should be. No, there will be a graphics where the graphics should be.
Second, the first backdoor: Make sure you have a Ghostscript version v9.16 or newer installed. Then run:
gs -o onlytext.pdf -sDEVICE=pdfwrite -dFILTERIMAGE -dFILTERVECTOR input.pdf
The
-dFILTERIMAGE
parameter will remove all raster images from your PDF. The-dFILTERVECTOR
param will remove all vector drawings or other line art from your PDF. What remains are all the textual components on all pages.
Third, the second backdoor: Use the same Ghostscript and run:
gs -o onlyimage.pdf -sDEVICE=pdfwrite -dFILTERTEXT -dFILTERVECTOR input.pdf
The
-dFILTERTEXT
parameter will remove all text parts from your PDF. The-dFILTERVECTOR
param you're already familiar with.... What remains are the raster image components on all pages.
Fourth, the third backdoor: Again, run Ghostscript:
gs -o onlyvector.pdf -sDEVICE=pdfwrite -dFILTERTEXT -dFILTERIMAGE input.pdf
You guess what this does? What remains are only the vector components on all pages.
Of course, you could also use only one of the params to remove one of the element types from the PDF and retain the other two.
Example output
Here is an example document which I use to demo the options. Admittedly, the document wasn't created with LaTeX, so bear with me...
Screenshot of original PDF page containing "image", "vector" and "text" elements.
Running the following 6 commands will create all 6 possible variations of remaining contents:
gs -o noIMG.pdf -sDEVICE=pdfwrite -dFILTERIMAGE input.pdf
gs -o noTXT.pdf -sDEVICE=pdfwrite -dFILTERTEXT input.pdf
gs -o noVCTR.pdf -sDEVICE=pdfwrite -dFILTERVECTOR input.pdf
gs -o onlyTXT.pdf -sDEVICE=pdfwrite -dFILTERVECTOR -dFILTERIMAGE input.pdf
gs -o onlyIMG.pdf -sDEVICE=pdfwrite -dFILTERVECTOR -dFILTERTEXT input.pdf
gs -o onlyVCT.pdf -sDEVICE=pdfwrite -dFILTERIMAGE -dFILTERTEXT input.pdf
The following image illustrates the results:
Top row, from left: all "text" removed; all "images" removed; all "vectors" removed. Bottom row, from left: only "text" kept; only "images" kept; only "vectors" kept.
edited 3 hours ago
answered 3 hours ago
Kurt Pfeifle
2,32421628
2,32421628
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f238830%2fexport-pdf-for-two-printer-one-pdf-with-just-the-pictures-the-other-one-with%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Your inkjet won't like it. (They almost all say not to put printed paper back through.)
– cfr
Apr 16 '15 at 1:40
LaTeX has the
phantom{text}
command which leaves 'text' blank and only reserves the space. Maybe you could utilize this to create the graphics-only version.– Uwe Ziegenhagen
Apr 16 '15 at 4:02
For omitting the figures, you might want to look at Placeholder for figure/includegraphics. Perhaps you could try modifying the example in the answer with
picins
package.– Fato39
Apr 16 '15 at 7:34
I could also use the inkjet first and then the laser :).
– TimK
Apr 16 '15 at 9:31
Welcome to TeX.SX! Usually, we don't put a greeting or a “thank you” in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Accepting and upvoting answers is the preferred way here to say “thank you” to users who helped you.
– Martin Schröder
Apr 21 '15 at 17:55