gofpdi icon indicating copy to clipboard operation
gofpdi copied to clipboard

PROBLEM TO IMPORT PAGE

Open leomirandadev opened this issue 5 years ago • 5 comments

Hello @phpdave11 , i'm having problems with ImportPage function.

I'm refactoring my PHP code to GOLANG. I can import my PDF file on PHP project, but the same file don't import on GO project.

The error is it: Failed to put imported objects: Unable to resolve object: Expected next token to be: endstream, got:

If you could help me, contact me on my linkedin

leomirandadev avatar Mar 25 '20 14:03 leomirandadev

Would you mind posting the PDF that causes this error?

phpdave11 avatar Mar 25 '20 15:03 phpdave11

The exact error is panic: Failed to put imported objects: Unable to resolve object: Expected next token to be: endstream, got: U§þÛKLóËAC3ÖIiâë½ÎcU|ªú|Ýø¶ßÌsbí+·E22\}K¶v¤?vßpê

leomirandadev avatar Mar 25 '20 18:03 leomirandadev

@phpdave11 Some idea, why doens't it work?

leomirandadev avatar Mar 27 '20 12:03 leomirandadev

@leonardomirandaDev that PDF appears to be damaged. There is no trailer, and the file is only 8192 bytes. Can you please upload it again?

phpdave11 avatar Jun 02 '20 13:06 phpdave11