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

Stamp : Fatal: unexpected EOF #731

Closed
xschmets opened this issue Nov 6, 2023 · 4 comments
Closed

Stamp : Fatal: unexpected EOF #731

xschmets opened this issue Nov 6, 2023 · 4 comments
Assignees

Comments

@xschmets
Copy link

xschmets commented Nov 6, 2023

Hi,

I am having a problem with the stamp function on a multi-page PDF file.

Version : pdfcpu_0.5.0_Windows_i386
OS : Windows 11 Pro 22H2

pdfcpu.exe validate -mode strict file.pdf
validating(mode=strict) file.pdf ...
validation ok
pdfcpu.exe optimize file.pdf
writing file.pdf...
pdfcpu.exe info file.pdf
file.pdf:
              Source: file.pdf
         PDF version: 1.7
          Page count: 2
           Page size: 595.28 x 841.89 points
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
               Title:
              Author:
             Subject:
        PDF Producer: pdfcpu v0.5.0 dev
     Content creator: Adobe InDesign 18.5 (Macintosh)
       Creation date: D:20231106104400+01'00'
   Modification date: D:20231106104400+01'00'
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
              Tagged: No
              Hybrid: No
          Linearized: No
  Using XRef streams: Yes
Using object streams: Yes
         Watermarked: No
          Thumbnails: No
                Form: No
            Outlines: No
               Names: No
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
           Encrypted: No
         Permissions: Full access

I get an "unexpected EOF" error when adding text to the PDF file (second page)

pdfcpu.exe stamp add -mode text -- "test" "" file.pdf out.pdf
writing out.pdf...
unexpected EOF

But no error when adding text only on the first page

pdfcpu.exe stamp add -p "1" -mode text -- "test" "" file.pdf out.pdf
writing out.pdf...
pages: 1

Here is the detailed output output.txt.

Thank you very much ;-)

Xavier

@hhrutter
Copy link
Collaborator

hhrutter commented Nov 6, 2023

This may be related to #713, #722
A fix is coming up in the new release.

@vedantmamgain
Copy link

Thanks for the update @hhrutter

@xschmets
Copy link
Author

xschmets commented Nov 8, 2023

Thank you @hhrutter I will test it when the new version is out and keep you informed.
Have a nice day.

@hhrutter
Copy link
Collaborator

This should be fixed with https://github.com/pdfcpu/pdfcpu/releases/tag/v0.6.0

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

No branches or pull requests

3 participants