Questions tagged [pdftron]

Use this tag for questions regarding any PDFTron product that does not have its own tag.

PDFTron is a company that develops cross-platform PDF toolkits and libraries.

263 questions
2
votes
1 answer

PDFTron : Drawing Ink Annotation programmatically

I am drawing ink annotation from points stored in db. Where those points were extracted from previously drawn shape over pdf. I have referred this example given by PDFTron but I am not able to see annotation drawn on page in proper manner. Actual…
Manoj
  • 2,659
  • 3
  • 27
  • 47
2
votes
2 answers

PDFTron Ink Annotation

I am using pdftron lib for rendering and editing pdf. I have a scenario where I have to get the coordinates of annotation and save it to db and if shape got erased delete those coordinates from database. I have manged to log both drawn coordinates &…
Manoj
  • 2,659
  • 3
  • 27
  • 47
2
votes
1 answer

Using PDFTron in Python, remove all image elements from a PDF with given size characteristics

I'm trying to remove a large number of very small images from a series of PDF documents using the awesome looking PDFTron library for Python. Basically I want to create a new PDF by going over each element in an existing PDF file and copying the…
2
votes
1 answer

Pdftron - creating new element with same styles as existing element

I am trying to create PDF editing prototype using PdfTron software. I have successfully created interface where user can click on image, created from PDF, select region and will be presented a text input where he/she can then enter text, that will…
Odif Yltsaeb
  • 5,120
  • 10
  • 46
  • 76
1
vote
1 answer

Customize and change the default UI of pdftron - reactNative

My question is does pdftron give react native developpers some alternatives to change the whole ui? As an example, i want to create a bottomTab to control the annotations and other things. is it possible to do it without touching the java and swift…
1
vote
2 answers

Next.js PDFtron Webviewer - ReferenceError: window is not defined

I'm trying to create a PDF viewer on my nextjs static page but i dont know how! hope you guys can help me solving this error or showing one other way to do this. (I'm new to Next.js) I was following this working example here index.js import…
1
vote
2 answers

pdftron copy wrong text

I want to use pdftron and all things work perfect but when i copy text from pdf some characters convert to blank square and question mark, any idea? here is my pdf. As you can see below: I wrote this code: WebViewer({ path:…
Abolfazl Mohajeri
  • 950
  • 2
  • 7
  • 19
1
vote
1 answer

PDFTron: batch update attributes

I want to batch update the titles of all objects in a PDF. Is there a way for me to do this? I had in mind to iterate through the fields and change the T values, but this appears not to work; changes to the fields don't persist from one iteration to…
JellicleCat
  • 23,907
  • 21
  • 96
  • 144
1
vote
1 answer

PDFtron: change name of element

I'm using PDFTron's Java SDK, and I want to change the name of an element, then write the modified PDF to a new file, but I get the following output: PDFNet is running in demo mode. Permission: read Exception: Message: SetName() can't be…
JellicleCat
  • 23,907
  • 21
  • 96
  • 144
1
vote
1 answer

Include and use native lib files (.so, .dylib) in "executable JAR"

I have a multimodule Spring Boot project with Maven. I am using spring-boot-maven-plugin to package this application into an executable JAR. This JAR is deployed to PCF (Pivotal Cloud Foundry).
1
vote
0 answers

Export ms-office file with markups to pdf via pdftron

MS Office has functionality to add markups and comments into document. This functionality is shown on the following picture The MS Office has option to generate PDF file from office file with markup, as a result pdf file will contain markups,…
1
vote
1 answer

Pdftron Webviewer custom form field

How can I create a custom form field? Goals I want to accomplish Create Button Add custom logic on button click There are SignatureWidgetAnnotation, CheckButtonWidgetAnnotation, but how can I control click event?
Mirian Okradze
  • 125
  • 1
  • 2
  • 5
1
vote
1 answer

PDFTron : - how to get pdf file from gridfs (mongodb), add watermark in it and send it to client?

I am using Gridfs to store large files in mognodb. Now I am using PDFTron for pdf editing and want to watermark pdf. The problem is i am not able to read file from Gridfs stream in pdftron nodejs sdk. also i want to send it back to the client…
1
vote
1 answer

PDFTron draw text sideways

For my specific purpose user draw rectangle annotation on web viewer and later on replace that with Free-Text in the place of Rectangle annotation. As you can see in above image i have added one rectangle. Now i am using below code to replace that…
DS9
  • 2,831
  • 4
  • 40
  • 91
1
vote
1 answer

customElement in PDFTron

I am trying to add checkbox which says: "Enable Snap: []". If user click on that checkbox i want to check that checkbox is checked or not. But i am getting error like: document.getElementById(...) is null. Below is the…
DS9
  • 2,831
  • 4
  • 40
  • 91
1 2
3
17 18