For react-pdf, I just did a clean clone, cd react-pdf-sample, cd my-pdf-app and npm i, npm start. The page rendered correctly. Feel free to email me the issue you are seeing andrey@pdftron.com.
Hello, I just need to get page count and dimensions (width and height in mm), the PDF files are uploaded by users for print... Getting this data I'll can calculate the size of the spin in a book for example; or the number of pages that fits in a sheet...
Hello Max, that should be possible with our SDK. The page dimensions in PDF are measured in box sizes, there is a media box, crop box etc. For example API for crop box: www.pdftron.com/api/pdfnet-node/PDFNet.Page.html#getCropBox__anchor.
XFA is limited support since Adobe deprecated it, now it’s acroforms. You can save of field values in XFDF. PDF/A is supported through PDFTron for creation and validation. All conformance levels. Reach out if you need further info.
I had a client request that a pdf that we're generating on the front end using react-pdf, be emailed to them every day, so i set up node-cron on my backend node server, but i'm not sure how to use react-pdf within that context to generate a stream that i can then send to nodemailer's attachment options. is there a way to do that?
You should probably convert it to a blob either in memory of browser, or ahead of time on server and then pass that to the WebViewer `instance.loadDocument(blob, {extension: 'pdf'})`
Can we do drag drop files in Pdftron webviwer? Because it's loading files from a specific location. But I want to know that can we drag drop files instead of placing within the solution.
Do you have any videos showcasing how you can prepopulate pdfs and sign them using an existing base64 signature? I am using react and the data I would want to use for prepopulating is avaliable in the component via context.
Here you go for signatures: www.pdftron.com/documentation/web/guides/signature-tool/#importing-existing-signatures and here is one for forms: www.pdftron.com/documentation/web/guides/forms/fill-fields/.
Comment here with any other libs you want me to evaluate! Let's expand this repo.
sorry , it is not working for react. its loading all my app inside the viewer div
Hey Valery, what error are you getting?
@@apryse-solutions I've got the same problem. All my app its rendering into viewer div. How can I fix it??
@@juancarlosmateo9409 Which sample? pdf.js, react-pdf, pdf.js express or WebViewer?
if it is PDF.js Express or WebViewer path is incorrect.
For react-pdf, I just did a clean clone, cd react-pdf-sample, cd my-pdf-app and npm i, npm start. The page rendered correctly. Feel free to email me the issue you are seeing andrey@pdftron.com.
its only for view?
I want to be downloadable
Do you have a way to send pdf to backend or save pdf to state (React-PDF libary)
You would just do a POST request with a blob to the backend. I would be careful how you set blob to state as it might be memory heavy.
@@apryse-solutions Thnak you
after pdf reload how highlighted text should be show, can you guide me?
Hello, I just need to get page count and dimensions (width and height in mm), the PDF files are uploaded by users for print... Getting this data I'll can calculate the size of the spin in a book for example; or the number of pages that fits in a sheet...
Hello Max, that should be possible with our SDK. The page dimensions in PDF are measured in box sizes, there is a media box, crop box etc. For example API for crop box: www.pdftron.com/api/pdfnet-node/PDFNet.Page.html#getCropBox__anchor.
How are these libraries regarding PDF/A support and XFA support? Is it possible to save the user input in an XFA file when a user has filled a form?
XFA is limited support since Adobe deprecated it, now it’s acroforms. You can save of field values in XFDF. PDF/A is supported through PDFTron for creation and validation. All conformance levels. Reach out if you need further info.
I had a client request that a pdf that we're generating on the front end using react-pdf, be emailed to them every day, so i set up node-cron on my backend node server, but i'm not sure how to use react-pdf within that context to generate a stream that i can then send to nodemailer's attachment options. is there a way to do that?
why pdf.js not accept array buffer data, can you explain to me
It seems like you can just convert it in memory?
Can you tell me how to didplay pdf of type octet/application??
You should probably convert it to a blob either in memory of browser, or ahead of time on server and then pass that to the WebViewer `instance.loadDocument(blob, {extension: 'pdf'})`
is pdf.js free for commercial ?
I believe pdf.js is free for commercial.
Can we do drag drop files in Pdftron webviwer?
Because it's loading files from a specific location. But I want to know that can we drag drop files instead of placing within the solution.
Can I use react-pdf to render a url from my api request or other external url? Example:
As long as you configure CORS on the server that serves those files you should be good.
How much does PDFTron cost?
Hello Peter, you can fill out the form here: www.pdftron.com/form/contact-sales/
Our sales team can work with you to work out flexible licensing
thank you man! it's really important information
Do you have any videos showcasing how you can prepopulate pdfs and sign them using an existing base64 signature? I am using react and the data I would want to use for prepopulating is avaliable in the component via context.
Here you go for signatures: www.pdftron.com/documentation/web/guides/signature-tool/#importing-existing-signatures and here is one for forms: www.pdftron.com/documentation/web/guides/forms/fill-fields/.
You are doing Gods work.
this video has saved my life. Thanks. Very Very clutch
Glad to hear it!
Thanks for this information
Thanks
Welcome