nbesli/pdf-merger-js

Error: Invalid PDF: startxref not found

Closed this issue · 9 comments

Hi! Got error Error: Invalid PDF: startxref not found
What does it mean?

@scorpioRED Could you please provide the pdf that resulted in this error!?

Unfortunately, I can not send it, this is a passport.
If I run the once - it's ok, but in express server - got this error

I don't understand why it doesn't work with express

Hello !

I have the same problem

here's my console
image

The data I try to merge
image

And the function
image

One other thing, this code worked perfectly last month.

Thanks

Hello,

I found the solution @scorpioRED .

It seams to appeared when one of the fetched files is unavailable, or corrupted, so it's indeed Invalid PDF...
Maybe you could try with only 2 corrects files and check if it's working...

Thanks !

Looks to me like a problem of pdfjs with some (potentional broken) pdfs.
If anybody could provide some some pdf-files to reproduce this issue it might be worth opening an issue in the pdfjs repository.

I'm facing same issue. Can anyone find the solution regarding the same????

I am using pdf buffers for merging the pdf.

@scorpioRED @urjit2498 Please check if this is still an issue with v4.

closing as solved with #84. Please let us know if this is still an issue!