Code:2.6: What is that stuff inserted into PostScript by Acrobat when printing encrypted PDFs? Encrypted PDFs when printed have the following in them: % Removing the following eight lines is illegal, subject to the Digital Copyright Act of 1998. mark currentfile eexec 54dc5232e897cbaaa7584b7da7c23a6c59e7451851159cdbf40334cc2600 30036a856fabb196b3ddab71514d79106c969797b119ae4379c5ac9b7318 33471fc81a8e4b87bac59f7003cddaebea2a741c4e80818b4b136660994b 18a85d6b60e3c6b57cc0815fe834bc82704ac2caf0b6e228ce1b2218c8c7 67e87aef6db14cd38dda844c855b4e9c46d510cab8fdaa521d67cbb83ee1 af966cc79653b9aca2a5f91f908bbd3f06ecc0c940097ec77e210e6184dc 2f5777aacfc6907d43f1edb490a2a89c9af5b90ff126c0c3c5da9ae99f59 d47040be1c0336205bf3c6169b1b01cd78f922ec384cd0fcab955c0c20de 000000000000000000000000000000000000000000000000000000000000 Which stops Distiller from converting to PDF. What is it? The eexec'd code reads in cleartext: /currentdistillerparams where { pop /pdfmark where {pop (This PostScript file was created from an encrypted PDF file.\n) print (Redistilling encrypted PDF is not permitted.\n) print userdict /quit get exec }if} if currentfile closefile That means, if either your printer knows about currentdistillerparams and pdfmark or the PostScript job itself defines these operators (even as dummies, see note below), this code assumes you are going to re-distill the PS job which is forbidden. NOTE: The PostScript driver you use might insert statements like /currentdistillerparams where {pop} {userdict/currentdistillerparams{1 dict}put}ifelse /pdfmark where {pop} {userdict/pdfmark{cleartomark}put}ifelse or the like (see the recommendations in Adobe's Pdfmark Reference Manual). Helge Blischke (H.Blischke@acm.org)
simce said:I've tried printing to AdobePDF printer, but i got information that GhostScript won't print on this printer crypted ps file.
I also tried to remove this encription part of the ps file but without any sucess.
sorry man, but could you print it with a phisical printer? if you can, you should install a file printer (for example apple ps printer) and print the ps with it, then rename the generated *.prn to *.ps. i think this remove the protection, but if you can print it with phisical printers. then you can convert the new *.ps to pdf.Fom said:I have Adobe Acrobat, but have the same problem with protected files like simce. Some kind of error message about protected file.
Fom said:I did that. Really I just wanted to extract text from protected PDF file. Sometimes conversion to PS and back to PDF can help. But last time I printed file to PS printer, open this with gsview and tried to extract text. I get error message: Unrecoverable error: invalidaccess in put.
Then I tried to open this printed PS file with Acrobat Distiller. But result was:
This PostScript file was created from an encrypted PDF file.
Redistilling encrypted PDF is not permitted.
%%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
%%[ Warning: PostScript error. No PDF file produced. ] %%
I also tried PDFWRITE in GSVIEW and advancedpdfpasswordrecovery, but anyway no use.
Please read the whole topic before you post, look at the 3rd post:mamali said:would you please just send it to my email? "mamadreza @ lycos.com". (if its not some sort of secret!
simce said:I can not send this file because it contains sensitive information.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?