Reputation
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
1 21 42
Newest
 Good Answer
Impact
~1.0m people reached

Apr
13
comment How to embed fonts into PDF
If setdistillerparams is ignored, the whole first -c "<<...>>" is also void. Ghostscript may then still complete the command successfully, albeit not producing the intended, but a different output (i.e., fonts not embedded).
Apr
13
comment How to embed fonts into PDF
@slhck: On what OS platform did you test this? The -c "...." is to hold a snippet of PostScript code. The quotes are there to work around spaces inside the snippet. That snippet could be divided into two snippets, but then each one should have its own -c and its own quotes, like -c "<< ... >>" -c "setdistillerparams". (So, yes, for the last -c the quotes could go, because the argument setdistillerparams does not include a space...)
Apr
13
comment How to embed fonts into PDF
@slhck: Thanks for spotting the missing quotes. I now added them at the correct location.
Feb
4
comment How to resume CUPS printer from command line?
@Sepero: All possible cupsd.conf parameters up to CUPS v1.7 are documented here: http://www.cups.org/documentation.php/doc-1.7/ref-cupsd-conf.html. Check the annotations for each parameter on the right edge of the page: it will tell you which CUPS release was the first to support it. Happy discovery of more useful params! :-)
Feb
4
comment How to resume CUPS printer from command line?
@Sepero: Yes. For example: you can try JobRetryInterval 58 to try every 58 seconds. Other possible values are 1w (1 week), 3d (3 days), 7h(7 hours) or 4m (4 minutes).
Jan
22
comment I want to change DPI with Imagemagick without changing the actual byte-size of the image data
@LeoIzen: I explained in detail that the DPI is only meaningful for 'rendering to devices'. Which means, the area would not stay constant. Which is why your downvote is not justified.
Jan
6
comment Combine/merge PDF files in Windows?
@sunk818: Thanks, I included your suggested edit into the answer (and then some).
Dec
24
comment Get current folder name by a DOS command?
@erict: path of batch file.
Dec
16
comment Convert PNG to Multi-page PDF
@ShaneDiDona: why a 'series of commands' if a simple one is all you need? :-)
Dec
16
comment imagemagick convert tiff degrades quality, how to prevent it?
Can you also please post the output of the following commands: identify image.tif and identify single*.tif?
Dec
16
comment imagemagick convert tiff degrades quality, how to prevent it?
Can you add (a link to a) sample multi-Page TIFF exhibiting the behaviour you observe? This should normally not happen...
Oct
8
comment Printer Job Language --> PDF
can you run head -n 50 mystery.pdf and see if after the @PJL lines end there is a %PDF-1.X line appearing?
Oct
8
comment How can I programmatically change/protect text contents in a PDF so it's no longer copyable text?
@JakeGould: I still upvoted your post, even though I criticized it :-)
Oct
8
comment How can I programmatically change/protect text contents in a PDF so it's no longer copyable text?
@JakeGould: You're wincing about pdftk is in vain... :-) -- pdftk is a command line tool that does NOT need an installed Java environment at runtime (only at build time)!
Oct
8
comment How can I programmatically change/protect text contents in a PDF so it's no longer copyable text?
@UserZer0: You imagine that 'password protecting' PDFs is requiring users to know and type in the password whenever they view the document. This imagination is not matched by reality. You can use an empty password. Viewers will not ask for the password when opening the PDF for viewing then. They will only ask for it, as soon as the user attempts to print or to copy or to do whatever is 'protected'. (This 'encryption' can of course be easily circumvented. But the same is true for your preferred method of pixelization of the pages...)
Oct
8
comment How can I programmatically change/protect text contents in a PDF so it's no longer copyable text?
@JakeGould: Your answer work, but it's method is overly complicated. It's better to use ImageMagick's convert (which employs a Ghostscript delegate anyway for PDF interpreting) for direct PDF-to-PDF conversion: convert vector.pdf rasterized.pdf will output all pages of input vector.pdf as rasterized.pdf where all pages are made up of images with the default resolution of 72 PPI. To get a higher resolution in the output of say, 200 PPI, simply add -density 200...
May
16
comment How to extract image from PDF file
@BurhanKhalid: Pre-built binaries are here: sourceforge.net/projects/poppler-win32
Feb
26
comment How Can I determine the page count from a postscript file (generated by Opera)?
@afrazier: Did you ever compare this "one true answer" with mine? How does mine then rate on your trueness scale?
Feb
24
comment How to extract image from PDF file
@MvG: in fact, since about 2 years my preferred kind of pdfimages also is the Poppler one. I updated the answer accordingly. Thanks for the hint!
Feb
24
comment How Can I determine the page count from a postscript file (generated by Opera)?
@Joe: there is no such thing as "PostScript 1.4, 1.5 and 1.6". PostScript specifies levels 1, 2 and 3. Are you sure you did indeed mean PostScript?? The versions you named are there for PDF, not for PostScript.