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.

346 questions
1
vote
4 answers

PDFtron & react Error: Two instances of WebViewer were created on the same HTML element. Please create a new element for each instance of WebViewer

I am trying to show in the app that I built in React a PDF file using PDFtron and encounter the following error: Two instances of WebViewer were created on the same HTML element. Please create a new element for each instance of WebViewer. my code…
David Yakin
  • 11
  • 1
  • 2
1
vote
1 answer

How can I add a pdftron Annotation to the current mouse position

I am writing a pdf reading software using pdftron. I know that docViewer.on('mouseLeftDown', e => {} can get an event, but onClick can’t seem to get a mouse event. Is there any good solution? Thank you. WebViewer( { path, …
Cpcp Cp
  • 73
  • 3
1
vote
1 answer

React js pdftron not displayed

I tried to view a pdf file, following the guide, but it is not working properly. Can anyone help me out? Link: https://codesandbox.io/s/tender-hill-27ugg?file=/src/styles.css Code: import React, { useRef, useEffect } from "react"; import WebViewer…
Paul
  • 3,644
  • 9
  • 47
  • 113
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
3 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…
Gustavo Morilla
  • 192
  • 1
  • 1
  • 9
1
vote
2 answers

Import multiple Annotations in Pdftron with NodeJs

In my application annotations are stored in the database as single annotations. For one document in the document table I store many annotations (multiple xfdf strings) in the annotation table. I wrote a code to generate the pdf and import these…
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
  • 28,480
  • 24
  • 109
  • 162
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
  • 28,480
  • 24
  • 109
  • 162
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
  • 335
  • 1
  • 5
  • 9
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,995
  • 4
  • 52
  • 102
1
vote
2 answers

PDFTRON - Export FreeHandAnnotation Signature as image

I am using https://www.pdftron.com/ for digital signing of pdf documents together with Angular v10. They have really good documentation so I managed to do almost everything I wanted. The only thing that bothers me is that I cannot export signature…
user777
  • 83
  • 7
1
vote
0 answers

pdftron html2pdf sample can't work on k8s?

run from this Dockerfile FROM centos:8 USER root WORDDIR /root RUN yum install -y wget java-1.8.0-openjdk-devel.i686 RUN wget https://www.pdftron.com/downloads/PDFNetC64.tar.gz RUN tar xvfz PDFNetC64.tar.gz RUN cd…
Qi Liu
  • 11
  • 1