Corrupt PDF File
Print your copies using your scanner and printer as a photocopier
Brought to you by:
pincopallino
I scanned one page with my scanner and iCopy into a pdf file.
A problem then occured when I included this pdf into LaTeX using the
way I have used for years:
\includegraphics[scale=1.00,viewport= 2.5cm 12.0cm 13.0cm 16.0cm,clip ,keepaspectratio]{/proj/listings/USTRev.pdf}
However, the "compiler" pdflatex stopped with the following error message:
<use /proj/listings/USTRev.pdf> [1 </proj/listings/USTRev.pdf pdfTeX error: pdflatex.exe (file /proj/listings/USTRev.pdf): PDF inclusion: invalid ProcSet array type <name> ==> Fatal error occurred, no output PDF file produced!
The PDF written by iCopy is not correct, but the "ProcSet" object has become obsolete since standard version 1.4, so it is ignored by most of the PDF applications. This is why I wasn't aware of the problem. Apparently, LaTeX PDF inclusion is based on an older PDF version and thus found the problem.
The attached version should fix the problem. You can extract the content of the zip archive over iCopy installation.
Thnx for a rapid reaction to the pdf-inclusion problem.
The iCopy_7449eb.zip was extracted and copied over the iCopy catalogue. The iCopy.exe now has a date of 11-20 and a size of 418304 bytes. The About of iCopy says 1.6.2.12.
I scanned one page to pdf and acrobat shows it perfectly.
Unfortunately LaTeX (i.e. pdflatex) still complains:
[Loading MPS to PDF converter (version 2006.09.02).]
) (c:/sys/texlive/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
(c:/sys/texlive/texmf-dist/tex/latex/oberdiek/grfext.sty)
(c:/sys/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
(c:/sys/texlive/texmf-dist/tex/latex/hyperref/nameref.sty
(c:/sys/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
<E:tristripdef.pdf, id="4," 598.05434pt="" x="" 845.3783pt="">
Sorry, the text became difficult to read when I copied from the Win10 command promt widow to the clipborad. Here follows the error message as Win10 shows it:
e:tristrip.pdf
!pdfTeX error: pdflatex.exe (file:tristrip.pdf): PDF inclusion: invalid ProcSet array type >name>
Dear gustaf,
I cannot reproduce the error with the content of iCopy_7449eb.zip. I can correctly inclue a PDF scanned with iCopy in a latex document.
Please attach the output PDF.
Matteo,
This is odd. The file is attached. Below, and for your reference, the files relative to iCopy.
Directory of f:\sys\iCopy
2014-10-22 10:55 10 239 Changelog.txt
2014-10-03 16:55 255 CREDITS.txt
2015-11-09 09:13 1 010 iCopy - Shortcut.lnk
2015-11-20 10:49 418 304 iCopy.exe
2015-03-22 22:02 4 416 iCopy.exe.config
2015-11-22 06:21 44 847 iCopy.log
2015-11-22 06:21 2 350 iCopy.settings
2015-11-22 05:55 250 448 iCopy_7449eb.zip
2014-10-21 18:48 45 056 Interop.WIA.dll
2014-10-03 16:55 35 805 License.txt
2014-10-03 16:55 90 112 Microsoft.WindowsAPICodePack.dll
2014-10-21 18:48 74 240 PDFWriter.dll
2014-10-22 11:45 18 471 README.html
2015-11-09 09:12 123 394 uninstall.exe
2014-10-03 16:55 323 624 wiaaut.dll
The PDF is identical to before the bugfix. To make sure we are on the same version, I repacked everything and attached it to this post.
I incremented the version number to 1.6.3.1. Please delete all the content of the directory and replace with the content of the zip file.
Matteo,
Your correction works perfectly.
I am so embarrased. I carefully replaced all files with those of the iCopy_7449eb.zip and that was it.! Earlier I must have forgotten, for one reason or another, to do the copy after the extraction.
Many thanks!
Ch
No problem! I'm glad that the problem is fixed!