-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
PDF Base Template #628
Comments
Hey! That's not possible with this lib unfortunately. React-pdf it's just for generating new docs. I don't see this feature coming to the lib in the sort term, but I'll keep this ticket open for further reference. |
Thanks for the quick reply and I understand! A slight difference between the pdfkit ticket is that they are talking about editing the PDF. Does adding stuff on top the existing PDF count as editing or might it perhaps be possible to just see the existing PDF as a background image? The base PDF is not really edited in terms of editing the actual contents of the PDF. |
React-pdf and neither pdfkit, as far as I know. If this is not the case let me know!
This is how we solved it now :) Only downside is the file size and the loss of scalability. Thanks for the quick replies, we will see if this is something the future can bring us. |
I've also run into this, another way react-pdf/pdfkit could potentially make things easier for this use-case is by supporting embedding SVGs. Most PDFs can be converted to SVG quite easily preserving vector paths to maintain scalability and avoid bloating filesize with raster image data, but react-pdf/pdfkit seem to only support embedding I'm going with the solution of my template converted to a |
Given now we have |
The |
The new 2.0 will have support for svg (already in beta in npm), although it's hard to get full support for svg on top of pdfkit. I mention this because of the above solution of importing a pre-existing pdf as svg into a react-pdf document. In theory it should eventually work, but in practice I have serious doubts we will reach such a sophisticated SVg engine to acutally have a nice result. About importing pre-existing docs, it's not in the roadmap so I'm closing this issue |
Hi, it doesn't seem to be possible to use a existing PDF as the base for the newly generated PDF.
Is this something that is not possible because of the way that react-pdf renders the PDF or might this be an useful addition?
Use cases:
It is possible to recreate the content of the pre-designed poster, but that would require much more work.
Let me know if this is already possible and I just somehow missed in the documentation or how I can assist with the possible creation of this.
Thanks
The text was updated successfully, but these errors were encountered: