You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2015/10/16 19:48:05 UTC

[jira] [Comment Edited] (PDFBOX-3026) Acrobat Reader 7.0 cannot open created files

    [ https://issues.apache.org/jira/browse/PDFBOX-3026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14961076#comment-14961076 ] 

Tilman Hausherr edited comment on PDFBOX-3026 at 10/16/15 5:47 PM:
-------------------------------------------------------------------

You mentioned on the mailing list:
{quote}
I can also use Acrobat Reader XI to make a small change OR actually downgrade the generated file to a 1.5 (Acrobat 6) PDF, save it, and in either case we can read it with Reader 7.
{quote}
I assume you mean Acrobat Pro. Could you please "downgrade" the file PDFA-XRefUncompressedLastAdded.pdf  and attach the saved file here? My intent is to find out what Acrobat 7 expects when reading an XRef stream.


was (Author: tilman):
You mentioned on the mailing list:
{quote}}
I can also use Acrobat Reader XI to make a small change OR actually downgrade the generated file to a 1.5 (Acrobat 6) PDF, save it, and in either case we can read it with Reader 7.
{quote}
I assume you mean Acrobat Pro. Could you please "downgrade" the file PDFA-XRefUncompressedLastAdded.pdf  and attach the saved file here? My intent is to find out what Acrobat 7 expects when reading an XRef stream.

> Acrobat Reader 7.0 cannot open created files
> --------------------------------------------
>
>                 Key: PDFBOX-3026
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3026
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Writing
>    Affects Versions: 2.0.0
>            Reporter: Kevin Ternes
>         Attachments: PDFA-XRefUncompressedLastAdded.pdf, PDFA.pdf, Reader7OpenMessage.png, load-NoForm-saved-XRefUncompressedLastAdded.pdf, load-NoForm.pdf, load.pdf, save-NoForm.pdf, save.pdf
>
>
> _Note: This issue is not observed with PDFBox 1.8.10._
> _Note: This is observed with recent 2.0.0 builds including 2.0.0-20151013.171100-1760_
> A file created by PDFBox can be opened by Reader X and XI.  But it cannot be opened by Reader 7.
> For instance, given a file, load.pdf, which can be opened by Reader 7, run the following:
> {code:java}
> public class PDFBoxRunLoadSave {
>   public static void main(String[] args) {
>     PDDocument pdDocument = null;
>     try {
> 		pdDocument = PDDocument.load(new File("load.pdf"));
> 		pdDocument.save("save.pdf");
>     } catch (Exception ex) {
> 		System.err.println("Caught " + ex);
> 		ex.printStackTrace();
>     } finally {
> 		try { pdDocument.close(); } catch (Exception ex) {
> 			System.out.println("Closing, caught " + ex);
> 		}
>     }
>   }
> }{code}
> The file, save.pdf, will be generated which can be opened by Reader X but Reader 7 will respond with a popup message, "There was an error opening this document.  The file is damaged and could not be repaired."  (See attached screenshot).
> This is consistently observed testing with a large number of sample files on 3 Windows 7 SP1 64-bit workstations and 1 Windows 10 workstation.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org