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

Cannot import page from original PDF #2

Closed
rorycl opened this issue Jan 18, 2020 · 3 comments
Closed

Cannot import page from original PDF #2

rorycl opened this issue Jan 18, 2020 · 3 comments

Comments

@rorycl
Copy link
Owner

rorycl commented Jan 18, 2020

When using rm2pdf to import a PDF, the import sometimes fails with a panic.

The panic message typically includes the text "Expected xref to start with 'xref'".

This appears to be due to gofpdi #16, which is caused by gofpdi not supporting xref streams.

Action:

  • Consider changing how PDFs are imported,
  • or help fix the xref stream problem
@rorycl
Copy link
Owner Author

rorycl commented Jan 19, 2020

Example error:

~/src/go-rm2pdf/rm2pdf -c blue -c red d46ced5f-1b26-431f-bafb-7dc2d68c3f43.pdf /tmp/100_planning_comments.pdf
panic: Failed to initialize parser: Failed to read pdf: Failed to read xref table: Expected xref to start with 'xref'.  Got: 47

@phpdave11
Copy link

@rorycl gofpdi v1.0.9 now supports xref streams

@rorycl
Copy link
Owner Author

rorycl commented Jun 15, 2020

Closing

@rorycl rorycl closed this as completed Jun 15, 2020
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

2 participants