Closed silexboy closed 5 years ago
@silexboy do you manage to do this task? I have to do exactly the same and I'm stuck with trying to add the images to the final pdf document
and createImageXObjectFromJPG
doesn't accept buffer either
I've placed a bounty on this issue
@goatandsheep Could be enough by creating a getStreamImageDimensions
method or allowing getImageDimensions
to accept a stream ?
@willy2dg I do want createImageXObjectFromJPG
to accept buffer, but the bounty is just for getImageDimensions
so yes.
Ok @goatandsheep , I will be checking it . Anyways createImageXObjectFromJPG
seems to be accepting a stream as input.
@goatandsheep I sent a PR. The steps to run it are the following :
npm install --build-from-source
npm link
( create npm link to package )npm link hummus
( link local package instad of installing from npm )Weird: npm install --build-from-source
gave me 165 warnings
I got warning too, but they was there before my changes.
@galkahana is this able to be merged ? @goatandsheep can we close the issue ?
@willy2dg I want the PR to be merged before we can close the issue. @galkahana I setup a ticket to figure out what to do re Travis issues (see link in PR)
Hi @silexboy can we close the issue? The PR is green and will be merged as soon as @galkahana sees it. @willy2dg deserves the bounty.
The only activity in the @silexboy account is to open this issue, so I doubt it responds. @galkahana could you close this ?
Is this ok?
Yes, thanks @galkahana . @goatandsheep I sent a bounty claim, please accept it when possible.
Merged the pr too
published as 106
Hi. I'm trying to merge PDF and image files from S3 to a single PDF document using
PDFRStreamForBuffer()
andmemory-streams
package for the writer.As you see, the similarly created stream is good because
appendPDFPagesFromPDF()
works good. The problem is thatgetImageDimensions()
doesn't work with such stream (and works well with the same image as local file, so the image is also ok).I would be happy if somebody advice what's wrong here.