Skip to content

Tag: pdf

Add Javascript to PDF file using iText7 C#

I am trying to add javascript to my PDF file using iText7 library and C# Currently, here is my code…which is by far not finish yet I want to add this javascript to my PDF and also download the file after it is finished adding the Javascript. Is there anybody that knows how to add Javascript to pdf? than…

Merge PDF with PDF-LIB

I am trying to replicate the official example for merging 2 pdf files, but instead of hardcode the name of the file, I’d like to have the user upload two files. The code works well when the filename is hardcoded (see url2) but doesn’t work when trying to retrieve the filename from the input tag. W…

Reorder Pages Event in PDFTron

I am working on Reorder Pages in Panel > Thumbnails View. PDFTron provide functionality so i can drag and re-arrange/reorder the pages. Then using that event i will upload the new PDF on server. But i am not able to find the correct event which will trigger only when user perform reorder in thumbnail contr…

How do I retrieve text from user selection in pdf.js?

This question is specific to pdf.js, a javascript based pdf renderer. I’m building a custom version where I need to extract the text that I select inside the pdf. There are other posts where you can fetch the text from one page or the whole pdf document such as the one here , but I’m looking to gr…