Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

GhostScript 8.7 Convert PDF to TIF

Posted on 2010-01-12
3
Medium Priority
?
1,539 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
2 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

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

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

I. Introduction In a previous article (http://www.experts-exchange.com/Web_Development/Document_Imaging/A_6537-PaperPort-Upgrade-How-to-download-and-install-updated-versions-of-PaperPort-11-and-12.html) (now deprecated), I discussed how to upgrad…
I. Introduction In a previous article (http://www.experts-exchange.com/Web_Development/Document_Imaging/A_6537-PaperPort-Upgrade-How-to-download-and-install-updated-versions-of-PaperPort-11-and-12.html) (now deprecated), I discussed how to upgrad…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
This video Micro Tutorial is the first in a two-part series that shows how to create and use custom scanning profiles in Nuance's PaperPort 14.5 (http://www.experts-exchange.com/articles/17490/). But the ability to create custom scanning profiles al…
Suggested Courses

571 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