-
Notifications
You must be signed in to change notification settings - Fork 170
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
unable to append page, make sure it's fine #9
Comments
should work on all of them. how about sending me the sample pdf? |
I don't really know why it doesn't work with my PDF Files. For additional information, I am using: and this is the sample code for generating PDF File: var PDFDocument = require('pdfkit'), doc.fillColor('#000000') doc.rect(100, 100, 100, 100) doc.write('sample.pdf'); Attached here is the screenshot of the error I am encountering and the Thanks again in advance. I highly appreciate your response. On Mon, Sep 16, 2013 at 1:37 AM, gal kahana notifications@github.comwrote:
|
thanks man. just send me the PDF, i'll be able to tell what's the probably. my initial assumption is that any PDF but encrypted one is eligible for the library usage. i might be wrong, and then it'd probably be a bug. got my email? |
This blog do not support attaching PDF Files. I already sent the copy of the sample PDF thru e-mail. I really hope you can help me with my issue. |
email to gal@pdfhummus.com |
Hi, Email sent at gal@pdfhummus.com |
got it, will look into it today/tomorrow. |
okay.. Thank you so much.. On Tue, Sep 17, 2013 at 4:47 PM, gal kahana notifications@github.comwrote:
|
Hi, Is there any update on my issue? Thanks! On Tue, Sep 17, 2013 at 4:49 PM, Mariz Salvador
|
Ziram, i inspected the PDF file sample.pdf and found an issue with it. the size entry in its catalog is 7 while the xref actual size is 8. this is what creates the error. it's a problem with how pdfkit creates files. |
Ziram, i updated hummusJS and the related PDFWriter code to support files with this error. i'm keeping it a policy, in case someone complains, but the default would be to allow such files. you can now update to the new hummus module (npm update hummus), you should get something with version 10.0.17 or higher (working on other things now,and may update further) and it should work fine. Gal. |
Hi again, How can I update my hummusJS? I also tried to re-install the hummusJS ("npm install hummus"), If that works fine on you, can you give me instructions on how to make it I really need this one. On Thu, Sep 19, 2013 at 11:55 PM, gal kahana notifications@github.comwrote:
|
Hi Gal, Oh no, it's my fault.. That works VERY GREAT! This module would be a great help for me. Ziram On Fri, Sep 20, 2013 at 10:29 AM, Mariz Salvador
|
Glad to hear that it worked. thanks for letting me know. |
Hi,
I'm using this code:
var hummus = require('hummus');
{ var pdfWriter = hummus.createWriter('./output/appendTest1.pdf',
{
version:hummus.ePDFVersion14
});
pdfWriter.appendPDFPagesFromPDF('./sample.pdf');
pdfWriter.appendPDFPagesFromPDF('./sample1.pdf');
pdfWriter.end();
console.log('done - ok');
}
When I tested it in other PDF, it works fine.
But when I tried it to the files I need,
The error was always, "unable to append page, make sure it's fine"
Does it require some version of PDF, or any format?
I just thought any PDF File will do.
Thanks in advance.
The text was updated successfully, but these errors were encountered: