allowing of drawing multiple pdfs into 1 page like jpeg and pngs
I'm also interested in such a feature; the current method using copyPages() from a donor PDF works, but does not allow a donor page to be 'drawn' over an existsing page in target document. In my case, I need to draw an advertorial page 'full scale' in my target page. The target page has different dimensions (but same ratio) as donor page.
Hello @BoLaMN and @webdesq! I agree that this would be a useful feature. It shouldn't be terribly difficult to implement either. Most of the necessary supporting code already exists in the pdf-lib codebase. It'd mostly be a matter of putting the pieces together.
If anybody would like to create a PR for this, I'd be happy to provide advice and answer questions! Otherwise I'll get around to this after fixing some of the outstanding bugs and higher priority issues.
Hey, could anyone help me and point me to the relevant part of codebase for rendering this pdf's?
(Hopding mentioned that some supporting code for this is mostly done).
I'd be happy to try and implement this for the project Im working on and then backport it to lib with PR.
@4rlekin I'd suggest taking a look at #348 where @tessi has made some great progress on implementing this.
Version 1.4.0 is now published. It contains PDF embedding support thanks to @tessi! (see this example). The full release notes are available here.
You can install this new version with npm:
npm install [email protected]
It's also available on unpkg:
As well as jsDelivr:
Most helpful comment
Version
1.4.0is now published. It contains PDF embedding support thanks to @tessi! (see this example). The full release notes are available here.You can install this new version with npm:
It's also available on unpkg:
As well as jsDelivr: