2,338 questions
0
votes
1
answer
47
views
Using copypage in PostScript
I have some not-so-old PostScript programs that create an animation using the copypage operator. See a simple example below [*].
They worked fine in macOS using Preview and pstopdf while Apple ...
2
votes
1
answer
80
views
How are ghostscript and ps2pdf related?
My initial problem was: How can I use my Mac's system fonts in a PostScript file; that is, a font that is NOT among the standard 35 (?) PostScript fonts.
It is no longer my problem because I stumbled ...
0
votes
0
answers
51
views
How to make Ghostscript from ghostscript source for all platforms
I've downloaded the Ghostscript source from official site. https://www.ghostscript.com/releases/gsdnld.html
My goal is to invoke 'make' and create portable dependencies of ghostscript for each of the ...
0
votes
0
answers
68
views
PDF: Embedding a document yields a /rangecheck error
From the official pdfmark documentation I copy-pasted into a file named example.ps:
[ /NamespacePush pdfmark
[ /_objdef {fstream} /type /stream /OBJ pdfmark
[ {fstream} << /Type ...
0
votes
0
answers
48
views
Exporting lossless MATLAB figures for latex PDF/A generation
I am currently trying to build an PDF/A-1b compliant document using pdflatex. The document includes figures, which are PDFs generated by MATLAB. I've tried different post-processing steps on each ...
0
votes
1
answer
68
views
Resize pages with GhostScript only if page size is too large
I process prints and PDF files on a server. It sometimes happens that users upload very large pages (A1 or A0). Conversion with GhostScript then takes a very long time and very large amounts of data ...
0
votes
1
answer
115
views
How to tell GhostScript to keep the pages orientation?
I need to annotate pupils' assignments, which I usually do with Xournal++. The assignments are either PDF files or image files of various file types and orientations. I have written a little bash ...
0
votes
0
answers
66
views
How can a .dsc file (as generated by pdf2dsc) be distinguished from a real PostScript document?
The pdf2dsc utility from Ghostscript generates a .dsc file consisting of a PostScript page list of a PDF document. How can such a file be distinguished from a real PostScript document?
The issue is ...
0
votes
0
answers
42
views
How to stop rotating when converting a pdf file to pdf/a format file using Ghostscript?
I am using Ghostscript version 9.54 to convert pdf files to pdf/a format. There are some pages in the pdf file that are oriented landscape and they are converted to portrait in the output file. Is ...
0
votes
0
answers
107
views
Ghostscript fails when input files have non-ASCII characters (like ª)
I want to merge two PDF files but when the input filename has some special characters such as ª or º etc., it fails to merge. With an input filename like MªRose.pdf.
try
SetLength(Arg, 7);
Arg[...
0
votes
1
answer
96
views
Ghostscript is returning exit code 0 if password is not set to decode encrypted PDF file
We are trying to transform password protected PDF file using Ghostscript without setting password.
We are seeing the below error.
**** Error: Couldn't initialise file.
Output may be incorrect.
No ...
2
votes
1
answer
242
views
Difficulty Embedding ICC Profile into PDF Using PDFBox, iText, and Ghostscrip
I've been working on embedding an ICC profile (AdobeRGB1998.icc) into a PDF file. Despite multiple attempts using various tools, I'm unable to get the ICC profile to show up in the metadata.
What I ...
2
votes
1
answer
67
views
Not understanding dictionary semantics, key-value defining and visability
I am not sure I understand the semantics of Postscript dictionaries. What is the difference if a 'def' is used when defining an entry to a dictionary as opposed to just listing the key value pair. ...
0
votes
2
answers
776
views
no xml file in ZuGFeRD PDF with ghostscript
i want to use ghostscript to create an Zugferd invoice
The konvertion from PDF into PDF/A3 is successfull but there is no xml attached.
i use it with the shell option in ms access, therefore i build a ...
1
vote
1
answer
238
views
Images are compressed when they should not be
I'm using Ghostscript to convert EPS images into PDF. We have EPS images with embedded pixel images. The conversion leaves these images at their original resolution, but it adds compression artifacts.
...
0
votes
1
answer
851
views
Getting Unrecoverable error: rangecheck in .putdeviceprops when using zugferd.ps with Ghostscript
I am trying to convert a PDF file to comply with PDF/A-3 format and attach an XML file to it as well so it complies with ZUGFeRD standard. I am using a program from Ghostscript zugferd.ps but it keeps ...
0
votes
0
answers
65
views
Fix PostScript file in Java (Missing %%EOF marker)
I have an Fortran application that can output PostScript files. When trying to read in the files using the ghost4j library, I get the following error
ERROR: %%EOF not found. File is not well-formed.
...
-2
votes
1
answer
149
views
Problems with LVE ID 5487
I made a php application that uses the spatie library top convert pdf files to jpg, using ghost script and imagickMagic.
The process is slow, but in dev environment, it works fine. I just adjusted the ...
0
votes
0
answers
86
views
How to add Overprint Fill on text in PostScript file
I have a ghost command that gets PGB PDF as input and generates CMYK PDF. What I need to achive is to make the text overprinted, so when I open the PDF in Adobe Acrobat -> Use print production ->...
1
vote
1
answer
767
views
Converting PDF to PDF/A-3
My final goal is to generate a PDF/A-3 containing an XML file named factur-x.xml compatible with the Factur-X standard.
For this, I installed version 10.03.1 of GhostScript on Windows in c:\gs\gs10.03....
0
votes
1
answer
196
views
How to handle spaces in filepath of ghostscript commands
I'm trying to run a ghostscript(10.01.2) command to convert a pdf to pdf/a through a Python subprocess call on Windows 10:
subprocess.call(f(gs -dPDFA=2 -dBATCH -dNOPAUSE -dAutoRotatePages=/None -...
-1
votes
1
answer
97
views
What is the parameter name for the pdf file name I pass to ghost script?
I can print a file using Ghostscript via the command prompt using the below command:
"C:\Program Files\gs\gs10.03.0\bin\gswin64c.exe" -q -dNOPAUSE -dBATCH -sDEVICE=mswinpr2 -sOutputFile=&...
0
votes
0
answers
311
views
Ghostscript (ps2pdf) Not Handling UTF-8 Input File
I'm trying to use ps2pdf to convert a Postscript file to PDF, but the Postscript file has a UTF-8 character in it which is not rendered properly.
We have a website with a database, where users can ...
0
votes
0
answers
95
views
Problem when converting pdf to image with the two versions of ghostscript 9.54 and 10.03
I am currently using ghostscript 9.54 and I got a problem when converting pdf to image with the parameters as followings
""
-dNOPAUSE
-dBATCH
-dSAFER
-sDEVICE=jpeggray
-r200
-dJPEGQ=100
-...
0
votes
0
answers
370
views
GhostScipt High CPU Usage
I am facing an issue of High CPU usage while compressing files. The scenario i have is a .Net WebService, that compresses PDF Documents with about 500kb.
I have a balanced two servers infrastructure, ...