Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF files are corrupted #14

Closed
eseifert opened this issue Mar 30, 2015 · 8 comments
Closed

PDF files are corrupted #14

eseifert opened this issue Mar 30, 2015 · 8 comments
Milestone

Comments

@eseifert
Copy link
Owner

PDF support "appears" to be broken. No image is being rendered in a PDF reader, and I suspect (due the tiny file size) that no data is actually being written.

http://trac.erichseifert.de/vectorgraphics2d/attachment/wiki/Usage/ellipse.pdf

The above seems to be an example?

Tested with Adobe Reader 10.

Imported from trac ticket #8, created by Detritus on 11-26-2010 at 18:31, last modified: 12-01-2010 at 20:13

@eseifert eseifert added this to the 0.8 Release milestone Mar 30, 2015
@eseifert
Copy link
Owner Author

The file can be opnened successfully with Okular (Linux/KDE) and PDF-Xchange Viewer (Windows). Only Adobe Reader and Adobe Acrobat have problems opening the PDF files. This has to be checked.

Trac comment by eseifert on 11-28-2010 at 09:01

@eseifert
Copy link
Owner Author

Confirmed.
PDFs are viewable in "PDF-Xchange Viewer" but are not readable by "Adobe Reader X".

Trac comment by Detritus on 11-29-2010 at 12:20

@eseifert
Copy link
Owner Author

r39 fixes this problem; Tested with Acrobat Reader 9.3

Trac comment by eseifert on 11-29-2010 at 20:16

@eseifert
Copy link
Owner Author

PDFs are now viewable in "PDF-Xchange Viewer" without errors.

"Adobe Reader X" will successfully open and read the document, however, it will also report:

"An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem."

Tested with r41.

Trac comment by Detritus on 11-30-2010 at 12:10

@eseifert
Copy link
Owner Author

This was a regression introduced with r41. Should be fixed in r42 (tested with Adobe Reader 9.3).

Trac comment by eseifert on 11-30-2010 at 15:17

@eseifert
Copy link
Owner Author

Fix confirmed with r43.

Thank you!

Trac comment by Detritus on 11-30-2010 at 16:18

@eseifert
Copy link
Owner Author

Sorry! Re-opening this again.

When generating a PDF that contains text (drawString()), the PDF is unable to be opened by Adobe Reader.

The PDF can however be opened with Xchange Viewer, though the text will not be present.

Version r43.

Trac comment by Detritus on 12-01-2010 at 13:03

@eseifert
Copy link
Owner Author

Yes, i can confirm this. This bug should be fixed by r44 as well as several other issues with drawString(). I tested example output files with Adobe Reader 9.3'', ''Adobe Acrobat 9'', and ''PDF-Xchange Viewer.

Text can optionally be rendered as vectors as a possible workaround for further issues:

g.setFontRendering(VectorGraphics2D.FontRendering.VECTORS);

Trac comment by eseifert on 12-01-2010 at 20:13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant