1
vote
1answer
55 views

Merge pdf and remove pages in one pass

I'd like to concatenate pdf documents without loosing any information (image resampling etc.). I only want to do lossless compressions, consolidate fonts etc. Before merging, I'd like to remove the ...
1
vote
0answers
39 views

Convert PDF image into true grayscale?

Following the answers to this post I get the following script: #!/bin/bash gs \ -sOutputFile=/tmp/output.pdf \ -sDEVICE=pdfwrite \ -sColorConversionStrategy=Gray \ ...
0
votes
1answer
59 views

Resize PDF pages and expand white background

What I Have I have a PDF containing a series of photos. Each photo occupies an entire A4-sized page. That is, each page of the PDF contains 1 photo, and there is no border/background/canvas showing ...
0
votes
0answers
46 views

printing a regular PDF document to virtual PDF printers (with Ghostscript engine) always generates output file with text converted to image

I've suddenly found out, that when I "print" any regular PDF document to a PDF virtual printer, it always converts a source regular (textual) PDF document into an image only document. It applies even ...
0
votes
0answers
37 views

Ghostscript - merging options

I've got lots of Ghostscript commands compiled together in a script that allows me to do most things to manipulate multiple pdfs. However, I would like to be able to merge documents in more ways than ...
1
vote
1answer
141 views

PDFCreator set “PDF Producer” meta attribute

I am trying to find a way to create a PDF using pdfcreator and set the PDF Producer to something other than ghostscript v*. For some odd reason the program I am piping the Pdf file to will only ...
0
votes
0answers
96 views

Using Ghostscript, can an image output be scaled prior to “printing”?

I'm working on a project where par of the requirements are to convert the first page of a PDF to a PNG. This in and of itself is relatively simple, but I've yet to find a way to scale the resulting ...
1
vote
0answers
98 views

Best settings to convert massive pdf hiking maps to images using ghostscript/imagemagick

I did convert all of the Te Araroa Hiking Maps from PDFs to JPEGs so far. The original maps are 16-64MB PDFs, which take forever to load on my Android Phone. I converted them using Ghostscript and ...
0
votes
0answers
51 views

Include filename during ghostscript pdf merge

The command I'm running: gs -dPDFSETTINGS=/prepress -sDEVICE=pdfwrite -o merged.pdf *.pdf Current output: Processing pages 1 through 2. Page 1 Page 2 Processing pages 1 through 2. Page 1 Page ...
2
votes
1answer
282 views

merge pdf files a4 and letter linux

I am training to merge multiple files using ghostscript, nevertheless the problem arises because the pdf files are in different paper size. So far, I've found this one command: gs -q ...
0
votes
0answers
27 views

Convert PDF to JPG via GhostScript [duplicate]

I try to convert a multi-page PDF to a single JPG. I only want the first page of the PDF converted. Since I want to use them as thumbnails the JPGs need to be like 100x100px in high quality. I have a ...
0
votes
1answer
277 views

GhostScript “Unrecoverable error, exit code 1” when using embeded fonts in .pdf

I have been trying to convert a .pdf file to a .png in Imagick, but I keep getting the "Unrecoverable error, exit code 1". I did some research and discovered that the problem is somehow related to the ...
0
votes
2answers
3k views

Formatting pdf for kindle

I started with a scan of a book which was a two-column PDF, I then used the gs methods outlined in this thread to put the PDF into single page format, which worked great. This looks good on the PC ...
4
votes
2answers
497 views

unix tools to merge pdf [duplicate]

I'm looking for an alternate to ghostscript to merge pdf tools. We generally have print jobs containing more than 3000 documents, which are to be merged into a pdf. Ghostscript does this whole ...
4
votes
2answers
1k views

Ghostscript PDF/A conversion fails validation

I'm developing a "paperless" workflow and plan to save all files in PDF/A-1b format. I'm trying to develop a simple batch file for converting PDF files that I create or receive to PDF/A-1b. Starting ...
2
votes
0answers
74 views

How to set keys for ghostscript filters in the command-line interface?

How do I set keys of Ghostscript filters (as documented here) in the command-line interface? More precisely, I would like to set the Predictor option of the PNGPredictorEncode filter in the following ...
1
vote
0answers
158 views

How to extract all info on PDF bookmarks using GhostScript?

Is there a method of dumping all info on the bookmarks of a PDF using GhostScript? With PDFtk I could use pdftk in.pdf dump_data, but is it possible to do it with GS? I have a PDF with bookmarks ...
2
votes
2answers
4k views

Create PDF with print page scale of none

I need to generate a pdf document that has the Print Options of Page Scaling set to "None" or "Actual Size" This setting in the document would mean that the default when you open the document in ...
2
votes
1answer
495 views

How to prevent GhostScript from substituting fonts when compressing a PDF file?

I have a PDF file that I want to compress as small as possible. Unfortunately GhostScript substituted some fonts for the existing fonts in the original PDF. I used the following command when invoking ...
2
votes
0answers
197 views

Exporting blank pdf using ghost script

I am using the ghost script writer to produce PDF's...and it works but it produces blank ones. I have searched a lot in this, but i didn't find anything that could help me. I'm using windows 7 ...
4
votes
1answer
661 views

Thumbnail generation with imagemagick doesn't render the correct colors

Generating thumbnails of PDFs with imagemagick sometimes renders incorrect colors. We're using an old version of imagemagick (6.5.7-8, that's the version installed on the heroku servers). Here is the ...
1
vote
1answer
979 views

Resize A4 PDF to SRA4 and center content

I'd like to be able to resize an A4 PDF to the slightly bigger SRA4 format, used by printing professionals. The content shouldn't be resized, but only centered. In other words, I'd like to add margins ...
5
votes
3answers
9k views

Where are ghostscript options / switches documented?

I know there is a Ghostscript option, for instance -dPDFSETTINGS=/screen - where is that documented? How can I see what other options it accepts, appart from screen? Also, -dMaxSubsetPct=100 - what ...
3
votes
2answers
4k views

How can I make all pages in a PDF the same size?

I have a pdf with different size pages. The first page is 579.275 by 402.547 points. The remaining pages are 612 by 792 pts (letter). I would like to have all the pages be letter size. The output ...
0
votes
1answer
110 views

How do I create a PDF that does NOT embed the used fonts?

Using MS Word 2010, or a free program, how do I create a pdf that does not include the used font(s)? I need this to test a feature in GhostScript.
4
votes
2answers
835 views

Getting N jpeg images from N-Pages PDF

I've a PDF composed by N pages. I want to convert this PDF in N jpeg images (by command line, no Php, Java or other programming languages). I'm trying to do this with GHOSTSCRIPT but the output ...
1
vote
0answers
153 views

Detecting vector heavy PDF files

I have an automatic PDF processing engine. I have experience in a variety of tools like PDF-TK, Ghostscript, PyPDF and PDFMiner but this problem is stumping me. I use Ghostscript to optimize PDF ...
3
votes
2answers
1k views

PDF => raster, is it possible to adapt the sampling resolution to the input page size?

I am using convert (Imagemagick component, delegating to Ghostscript in background) to transform the first page of PDF files to images. Usually, convert -density 200 file.pdf[0] first_page.png will ...
0
votes
1answer
390 views

Printing two DIN A6 pages on a A4 sheet without border in order 1,2,1,2

I have created a postcard in DIN A6 format which I want to print with a A4 printer. To do that I need to place the two pages (1=front and 2=back) on the A4 page in the following order: 1,2,1,2. It ...
0
votes
1answer
423 views

How to crop PDF halfway and merge to a new file

I've got a PDF output file that has been generated by PowerPoint which has the slides on the left and lines for notes on the right side. The format is A4 and there are three slides per page. Now I'd ...
1
vote
1answer
813 views

Ghostscript printing outside of the page

I have an application that generates pdf files using ghostscript (current gs version 9.04). The pdf files it generates are placed up and to the left about 1/4 inch each, outside of the printable ...
7
votes
1answer
3k views

Use Ghostscript, but tell it to not reprocess images?

I have a PDF that has already compressed and somewhat artifact-y images, and I'm using Ghostscript to prepend a title page to that PDF. However, I cannot find any way to tell GS to just use the ...
1
vote
3answers
2k views

GhostScript - attempting to reduce the file size of a PDF - error

I'm trying to reduce the file size of a PDF using GhostScript. Generally, this works: gswin32c -sDEVICE=pdfwrite -sOutputFile=out.pdf in.pdf I think it gets rid of bookmarks, annotations, etc. On ...
4
votes
2answers
1k views

Export Specific Page of a PDF to TIFF

I have a lot of PDFs that I need to convert a single page from to a TIFF. Acrobat would let me batch this for ALL pages but that would take too much space. Is there a way to do this?
4
votes
5answers
2k views

PDF has an extra blank in all words after running through Ghostscript

This PDF was produced by Abbyy Finereader 10: http://ebooks.zeitr.org/from_abbyy.pdf You can copy & paste the first sentence and get this (very good) text result: Der »Bund Deutscher ...
19
votes
3answers
17k views

How can I fix/repair a corrupted PDF file?

Does anyone have any recommendation or procedures for repairing a corrupt PDF? When I open the file I get "There was an error opening this document. the file is damaged and cannot be repaired." ...
2
votes
4answers
2k views

Activate comments in PDF

I am generating PDF files with pdflatex and I would like my PDF to allow comments/annotations (without having to use Acrobat Professional to write the comments). pdflatex cannot enable comments in PDF ...
17
votes
3answers
12k views

How can I split a PDF's pages down the middle?

Does anyone know of a good way to split a pdf's pages down the middle into two new pages? To be clear, I'm not trying to split out already existing pages from a pdf; I am trying to create two new ...
0
votes
4answers
3k views

Converting Windows Journal files to PDFs from command line

Support for the Windows Journal format (JNT) outside the Windows platform is dismal. Thus, I am looking for a way to convert jnt files to PDFs. Currently, one either has to print to PDFs from ...
0
votes
2answers
1k views

How to Split a Big Postscript file (3000 pages) into one individual file per page (using Windows 7)? [duplicate]

Possible Duplicate: GhostScript noob help - Breaking a multipage PDF file into many single page PS or EPS files. Hi, I'm having trouble doing the following: I have a big PDF file that I ...
2
votes
2answers
4k views

GhostScript noob help - Breaking a multipage PDF file into many single page PS or EPS files

I'm trying to do the following with ghostscript: Turn one multipage PDF file (about 3,000 pages, 200mb file) into: One file per page of the PDF, and convert each (page/file) to EPS or PS (post ...
7
votes
3answers
5k views

Batch remove comments from PDF files

How can I easily remove all comments and annotations (added with Foxit Reader) from all the PDFs in a folder?
2
votes
3answers
1k views

How to embed fonts into PDF

I have a pdf file, and I want to know if I can embed/subset all its fonts into PDF file itself? Is there any tool supporting this operation?
2
votes
1answer
1k views

Turn off compression images inside of a PDF with Ghostscript?

Is it possible to turn off or lower the compression of images inside a PDF with Ghostscript when I convert to jpg? I currently use the following: gs \ -dNOPAUSE \ -q \ -dBATCH \ -dSAFER \ ...
1
vote
2answers
2k views

rescale PDF files

I have a bunch of PDF files that I have been using to make PNG files, with a width of 320 pixels. The way I have been doing this is by creating the PDFs in LaTex with a width of 4.44444 inches, then ...
8
votes
6answers
13k views

Converting a PDF to black & white with ghostscript

Similarly to this question: Convert a PDF to greyscale on the command line in FLOSS? I have a PDF-document and want to convert it to pure black and white. So I want to discard halftones. To ...
3
votes
2answers
2k views

Reading a PDF file for testing in GhostScript?

This question is related to this one - http://superuser.com/questions/197373/toolkit-tool-for-pdf-checking I've installed "ghostscript" on my Windows system and it gives me a prompt to type in. I'm ...
11
votes
5answers
6k views

Linux-based tool to chop PDFs into multiple pages

I've got a bunch of PDF files that have been produced two "real" pages to a single PDF page; I'd like to chop these in half and put each half on a separate page. Essentially, I need something ...
0
votes
1answer
1k views

PDFCreator renders badly an image with gradients embedded in a document

I have MS-Word 2003 and need to transform a .doc file into a pdf. For this reason, I installed PDFCreator and tried to print to the virtual printer. The pdf file is created, but observing the result ...
0
votes
1answer
659 views

Ghostscript renders embedded fonts in pdf poorly (all jaggy)

Ghostscript doesn't render embedded fonts in pdf's properly. e.g. http://vegro.nl/cmsfiles/ConsumentenAssortiment/Brochure/10.axd The characters of the logo on the right top ('Thermrad') are all ...