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

won't be able to load Adobe LiveCycle pdf file #57

Closed
vsrboth opened this issue May 1, 2016 · 5 comments
Closed

won't be able to load Adobe LiveCycle pdf file #57

vsrboth opened this issue May 1, 2016 · 5 comments
Labels

Comments

@vsrboth
Copy link

vsrboth commented May 1, 2016

hi @boazsegev

It seems the library is having an issue loading pdf file that is creating using Adobe LiveCycle (containing xml file).

Link to download sample pdf

here is the error I got

screen shot 2016-05-01 at 9 58 19 am

@boazsegev
Copy link
Owner

Hi @vsrboth ,

Thank you for reporting the issue.

Could you please explain what you're experiencing?

I downloaded the file to test and CombinePDF.load loaded the file properly.

The warnings are due to the fact that some features aren't fully supported by the library, so the library is warning about potential data loss... but I didn't notice any data loss, did you?

Best regards,
Bo.

@vsrboth
Copy link
Author

vsrboth commented May 1, 2016

Hi @boazsegev ,

thank you so much for your prompt assistance (so much appreciate [bow]).

Problem is it takes me forever to load the pdf file. Probably you can find another Pdf sample for testing.

screen shot 2016-05-01 at 2 45 09 pm

Note: I am using Mac - El Captian.

@boazsegev
Copy link
Owner

Hi @vsrboth ,

Are you experiencing long load times when using the terminal?

When using the Terminal, Ruby will print back the value of the last statement, which can take a very long time for PDF objects.

PDF objects are stored in a recursive Hash (some hash keys point to their parents). Your file will have a Hash with more then 500 Kb of data.

This will take irb a long time to process for printing.

You can avoid this slow "print" processing by giving irb a smaller object to print.

i.e. the following line will print out the PDF Hash, which will take a long time:

CombinePDF.load "test.pdf"

So, you can change it to the following line, which prints nil, which is fast:

pdf = CombinePDF.load "test.pdf"; nil

Then you can use the data in the pdf variable to test out any actions you need. i.e.

pdf.save "out.pdf"

Please tell me if this helps.

@vsrboth
Copy link
Author

vsrboth commented May 1, 2016

that's a magic ;) thank you so much @boazsegev

@boazsegev
Copy link
Owner

You're Welcome :)

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

No branches or pull requests

2 participants