Code Monkey home page Code Monkey logo

Comments (15)

galkahana avatar galkahana commented on May 20, 2024

should work on all of them. how about sending me the sample pdf?

from hummusjs.

ziram avatar ziram commented on May 20, 2024

I don't really know why it doesn't work with my PDF Files.
I'm using pdfkit module of node.js in creating them.
Does this affect the function of appending pdf?

For additional information, I am using:
node js - v0.8.20
pdfkit - v0.2.0
hummus - v1.0.16

and this is the sample code for generating PDF File:

var PDFDocument = require('pdfkit'),
doc = new PDFDocument(
{
layout: 'landscape'
});

doc.fillColor('#000000')
.text('Hello World')

doc.rect(100, 100, 100, 100)
.fillAndStroke('red','black')

doc.write('sample.pdf');

Attached here is the screenshot of the error I am encountering.
capture

Note: Sample PDF File will be sent thru e-mail, since this doesn't support attaching such format.

Thanks again in advance.
I highly appreciate your response.

from hummusjs.

ziram avatar ziram commented on May 20, 2024

I don't really know why it doesn't work with my PDF Files.
I'm using pdfkit module of node.js in creating them.
Does this affect the function of appending pdf?

For additional information, I am using:
node js - v0.8.20
pdfkit - v0.2.0
hummus - v1.0.16

and this is the sample code for generating PDF File:

var PDFDocument = require('pdfkit'),
doc = new PDFDocument(
{
layout: 'landscape'
});

doc.fillColor('#000000')
.text('Hello World')

doc.rect(100, 100, 100, 100)
.fillAndStroke('red','black')

doc.write('sample.pdf');

Attached here is the screenshot of the error I am encountering and the
sample PDF I am using.
[image: capture]https://f.cloud.github.com/assets/5434307/1146686/ab92327e-1e77-11e3-86eb-88c3ff5cf078.JPG

Thanks again in advance.

I highly appreciate your response.

On Mon, Sep 16, 2013 at 1:37 AM, gal kahana [email protected]:

should work on all of them. how about sending me the sample pdf?


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-24475981
.

from hummusjs.

galkahana avatar galkahana commented on May 20, 2024

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?

from hummusjs.

ziram avatar ziram commented on May 20, 2024

This blog do not support attaching PDF Files. I already sent the copy of the sample PDF thru e-mail.
If you didn't receive it, where else can I send the sample PDF?

I really hope you can help me with my issue.

from hummusjs.

galkahana avatar galkahana commented on May 20, 2024

email to [email protected]

from hummusjs.

ziram avatar ziram commented on May 20, 2024

Hi,

Email sent at [email protected]
sample PDF also was attached.

from hummusjs.

galkahana avatar galkahana commented on May 20, 2024

got it, will look into it today/tomorrow.

from hummusjs.

ziram avatar ziram commented on May 20, 2024

okay.. Thank you so much..
Hope you can help me.

On Tue, Sep 17, 2013 at 4:47 PM, gal kahana [email protected]:

got it, will look into it today/tomorrow.


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-24572650
.

from hummusjs.

ziram avatar ziram commented on May 20, 2024

Hi,

Is there any update on my issue?

Thanks!

On Tue, Sep 17, 2013 at 4:49 PM, Mariz Salvador
[email protected]:

okay.. Thank you so much..
Hope you can help me.

On Tue, Sep 17, 2013 at 4:47 PM, gal kahana [email protected]:

got it, will look into it today/tomorrow.


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-24572650
.

from hummusjs.

galkahana avatar galkahana commented on May 20, 2024

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.
i'll see if i can teach hummus to be more lenient about this. although incorrect, i should be able to teach hummus to work also with pdfs like this. gimme an hour or two.

from hummusjs.

galkahana avatar galkahana commented on May 20, 2024

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.
please verify and let me know if it works.

Gal.

from hummusjs.

ziram avatar ziram commented on May 20, 2024

Hi again,

How can I update my hummusJS?
I tried the "npm update hummus" but nothing changed.

I also tried to re-install the hummusJS ("npm install hummus"),
the version became
"version": "1.0.18"
and then I tried appending my PDF Files but still, I got the same error.

If that works fine on you, can you give me instructions on how to make it
work on my workstation?..

I really need this one.
Thank you so much..

On Thu, Sep 19, 2013 at 11:55 PM, gal kahana [email protected]:

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.
please verify and let me know if it works.

Gal.


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-24750167
.

from hummusjs.

ziram avatar ziram commented on May 20, 2024

Hi Gal,

Oh no, it's my fault..

That works VERY GREAT!
Thank you so much for helping me..
I owe you a lot..
It was a big big help for me..
You're a genius.. :)

This module would be a great help for me.
Thanks again!

Ziram

On Fri, Sep 20, 2013 at 10:29 AM, Mariz Salvador
[email protected]:

Hi again,

How can I update my hummusJS?
I tried the "npm update hummus" but nothing changed.

I also tried to re-install the hummusJS ("npm install hummus"),
the version became
"version": "1.0.18"
and then I tried appending my PDF Files but still, I got the same error.

If that works fine on you, can you give me instructions on how to make it
work on my workstation?..

I really need this one.
Thank you so much..

On Thu, Sep 19, 2013 at 11:55 PM, gal kahana [email protected]:

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.
please verify and let me know if it works.

Gal.


Reply to this email directly or view it on GitHubhttps://github.com//issues/9#issuecomment-24750167
.

from hummusjs.

galkahana avatar galkahana commented on May 20, 2024

Glad to hear that it worked. thanks for letting me know.

from hummusjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.