?
Solved

GhostScript 8.7 Convert PDF to TIF

Posted on 2010-01-12
3
Medium Priority
?
1,513 Views
Last Modified: 2013-12-02
I have a script that uses GS to convert PDFs to Tifs, this script is working without any problems most of the time. The PDF files are uploaded to my server by the site users so I have not control over the content or the way they are created. The Files that are not being converted have a Security Certificate on them. When I open these files with Adobe reader I get a Document Status window that I must click ok on. I am looking for a way to get GS to open and convert these files without an error.

The command that I am using is
gswin32.exe -dBATCH -dNOPAUSE -sDEVICE=tiffgray -dPDFFitPage -r200 -q -sOutputFile=outfile-%00d.tif  infile.pdf

The Error that I am getting from GS looks like this.

   **** This file uses an unknown security handler.
   **** The file was produced by:
   **** >>>> ùÕ×ptÀ,h&þ$a°ÚAÕóà<<
<<
Error: /undefined in pdf_process_Encrypt
Operand Stack:

Execution stack:
 %interp_exit  .runexec2  --nostringval--  --nostringval-- --nostringval-- 2 %stopped_push   --nostringval-- --nostringval--   --nostringval-- false    1 %stop_push    1862 1 3   %oparray_pop 1861   1   3  %oparray_pop 1845   1  3  %oparray_pop  --nostringval--   --nostringval-- --nostringval-- --nostringval-- --nostringval-- false 1 $stopped_push  --nostringval--
Dictionary stack:
    --dic:1157/1684(ro)(G)--   --dic:1/20(G)--   --dict:75/200(L)--  --dict:106/127(ro)(G)--  --dict:285/300(ro)(G)--   -- dict:18/25(L)--
Current allocation mode is local
GPL Ghostscript 8.70: Unrecoverable error, exit code 1
Close this window with the close button on the title bar or the system menu.
0
Comment
Question by:merlin5us
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 2000 total points
ID: 26407925
I don't think there is anything you can do in Ghostscript to open these files.
Can you attach either one of these files, or at least the dialog that Reader pops up?

I would add a disclaimer to your web site that says that the uploaded PDF files need to be free of any document security settings or certificates.
0
 

Author Comment

by:merlin5us
ID: 26416398
can not attach one of the documents, however the error that I listed is exactly what the GS popup box has in it.

0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article focuses on how to remove password security from multiple PDF files by Adobe Acrobat program. Sometimes it is essential to access the stored data items and to print, edit as well as copy content from Portable Document Format files in abs…
PDF files have been in the limelight due to its unmatched features.  Personal documents, emails, business reports and eBooks are all converted into PDF files owing to peerless features provided by it. Adding watermark to a PDF file is a method to se…
Microsoft Office Picture Manager is not included in Office 2013. This comes as quite a surprise to users upgrading from earlier versions of Office, such as 2007 and 2010, where Picture Manager was included as a standard application. This video expla…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question