ghostscript

Ghostscript works in command line, but does not work if executed from Java on AIX

我是研究僧i 提交于 2019-12-23 01:17:18
问题 Short Description I have to run Ghostscript on AIX. It works in command line : XXXXXXXX:i2zate:/home/i2zate>/usr/bin/gs -dFIXEDMEDIA -dPDFFitPage -dFirstPage=1 -dLastPage=1 -dBATCH -dNOPAUSE -dNOPROMPT -dSAFER -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 -dDEVICEWIDTH=90 -dDEVICEHEIGHT=120 -dORIENT1=true -sDEVICE=jpeg -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sOutputFile=1.jpg porsche.pdf GPL Ghostscript 8.70 (2009-07-31) Copyright (C) 2009 Artifex Software, Inc. All rights reserved.

Ghostscript works in command line, but does not work if executed from Java on AIX

*爱你&永不变心* 提交于 2019-12-23 01:17:13
问题 Short Description I have to run Ghostscript on AIX. It works in command line : XXXXXXXX:i2zate:/home/i2zate>/usr/bin/gs -dFIXEDMEDIA -dPDFFitPage -dFirstPage=1 -dLastPage=1 -dBATCH -dNOPAUSE -dNOPROMPT -dSAFER -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 -dDEVICEWIDTH=90 -dDEVICEHEIGHT=120 -dORIENT1=true -sDEVICE=jpeg -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sOutputFile=1.jpg porsche.pdf GPL Ghostscript 8.70 (2009-07-31) Copyright (C) 2009 Artifex Software, Inc. All rights reserved.

Ghostscript 9.07 : PDF/X-1a:2001 : PDF/X output intent is missing

£可爱£侵袭症+ 提交于 2019-12-22 18:05:32
问题 Could you please tell me how to embedded the PDF/X output intent. When I check with preflight I reported that PDF/X-1a:2001 : PDF/X output intent is missing in the PDF file. Problem faced in the PDF file: 1) PDF/X-1a:2001 : PDF/X version is not PDF/X-1a:2001 2) PDF/X-1a:2001 : PDF/X output intent is missing 3) PDF/X-1a:2001 : Document trapped flag is Unknown 4) PDF/X-1a:2001 : Text object uses invalid characters (.notdef glyphs) GS Command: gs -dPDFX -dBATCH -dNOPAUSE -dNOOUTERSAVE \

add text on 1st page of a pdf file

风格不统一 提交于 2019-12-22 17:59:22
问题 I'm tryin to add a text comment (not a note) to a pdf file. I create a date.ps file with contains the text comment : %! /Arial findfont 30 scalefont setfont newpath 10 720 moveto (PAID on 5.1.2013) show showpage and I launch the shell command with $i=name of the pdf file to tag: gs -q -dNOPAUSE -dSAFER -dBATCH -sOutputFile=$RFP/$DOMAINE/$NEWNAME -sDEVICE=pdfwrite -sPAPERSIZE=a4 date.ps $i This works, but it create a new 1st page empty with the text "PAID on 5.1.2013" alone. I do not find the

Ghostscript: convert PDF to EPS with embeded font rather than outlined curve

蹲街弑〆低调 提交于 2019-12-22 09:55:48
问题 I use the following command to convert a PDF to EPS: gswin32 -dNOCACHE -dNOPAUSE -dBATCH -dSAFER -sDEVICE=epswrite -dLanguageLevel=2 -sOutputFile=test.eps -f test.pdf I then use the following command to convert the EPS to another PDF (test2.pdf) to view the EPS figure. gswin32 -dSAFER -dNOPLATFONTS -dNOPAUSE -dBATCH -dEPSCrop -sDEVICE=pdfwrite -dPDFSETTINGS=/printer -dCompatibilityLevel=1.4 -dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true -sOutputFile=test2.pdf -f test.eps I found

Resize many PDFs

限于喜欢 提交于 2019-12-22 09:35:13
问题 I have many (around 1000) multiple-page PDFs for a program I am writing. The problem is that many of them are inconsistent about page size, even within the same document at times. Does anyone know of a way I could programmatically go through the files and resize the pages to what I want? This can be in any language. I can accomplish this in Adobe Acrobat Pro, but there are so many that would end up taking a long, long time. The only way I can get it to resize there is to add a background from

GhostScript on CentOS 5.3 - Unable to process JPXDecode data

拈花ヽ惹草 提交于 2019-12-22 06:49:17
问题 I'm trying to get our server to convert PDFs to image files. It's a CentOS 5.3 system and the latest version of ghostscript that can be (8.70), has been installed. When I try to convert a PDF I get the following error repeated for each page, and the result is a load of blank images. **** ERROR: Unable to process JPXDecode data. Page will be missing data. So, I found an answer on here that seemed to answer that question: iText PDF; howto convert jpeg2000 to jpg using Java Following that I

Scaling PDF file using ghostscript

血红的双手。 提交于 2019-12-22 00:56:00
问题 Our system takes 8.5 x 11 PDF files (only) and does things to them. Sometimes customers hand us files to manipulate into the right shape. We're working to automate scaling non-standard sized PDF files into 8.5 x 11. We've been able to handle most files we've tested with ghostscript, but we have this one customer submitted file that we are unable to handle. (And unfortunately we can't recreate the condition and, of course, can't post the customer's data.) The file is PDF v1.7 and contains

How to Use Ghostscript DLL to convert PDF to PDF/A

[亡魂溺海] 提交于 2019-12-21 22:04:36
问题 How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, i'm using C#. 回答1: pls, try to run this from the command line to test if it's doing what you need. gswin32.exe -dPDFA -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=PDFA.pdf 1.pdf A Simple C# Wrapper for Ghostscript 回答2: I've had it working using the following from ghostscriptsharp: [DllImport(

PDF to Image using GhostScript. No image file has to be created

橙三吉。 提交于 2019-12-21 21:39:58
问题 I need to convert a PDF to JPEG (or any other image format as PNG...) with C# I have the path to the PDF and I want to obtain a MemoryStream of the image. I managed to do it with Ghostscript and GhostscriptSharp but I'm forced to create a file, the actual image, and then read this file to create the MemoryStream. Can I do it without this step? Thanks 回答1: Yes, but you will need to interface directly to Ghostscript using the Ghostscript DLL (I'm assuming Windows since you mention C#). The