Questions tagged [pdf-annotations]

PDF Annotations associate an object such as a note, sound, or movie with a location on a page of a PDF document, or provides a way to interact with the user by means of the mouse and keyboard. There are many different types of annotations and a few different states that they can exist in.

78 questions
0
votes
1 answer

Can we get click or tap event and change color of PDFAnnotation with having image on it

I am trying to add pdfannotation inside pdfview with image only, where I need tap event of that particular iamge annotation that I have added. Can anyone suggest any way to achieve this. because I need specific tap or selected event of that. so…
Akash S
  • 17
  • 7
0
votes
0 answers

how to crop on pdf in react native

i want to select pdf from my device and then after clicking on crop buton i want to be able to crop on the pdf selected , i have already select pdf and display it , but when i click on confirm button to confirm the crop i got this error : WARN …
0
votes
0 answers

pdf_annotate how to rotate text with 90 degree?

I have to add some information as text to the existing pdf, I managed to annotate with pdf-annotate library but now, I want to rotate annotation with 90 degree what do I have to do to rotate the text? I have changed x and y for my text end point and…
0
votes
0 answers

Is there a way to annotate PDF files in react.js

I am using the NPM library react-pdf to render user uploaded PDF file in a HTML tag. I am curious how can I add some labels on the content in that pdf by editing the canvas or is there any way of editing the canvas.
Kaartik Nayak
  • 240
  • 2
  • 9
0
votes
0 answers

SetAPStringValue fails to set AP value for annotation

I'm using pdfium library to implement a UWP pdf viewer to view & annotate pdf documents. I'm trying to set the AP of an annotation using SetAPStringValue method. But it always returns false, I can't figure out what's wrong there, Could someone help…
0
votes
1 answer

Add watermark to PDF using PDFium

I'm implementing a PDF editor on UWP using PDFium as the base library. I cannot seem to find any proper way of adding/creating watermarks on a document. I went through the PDFium source and spec documents but didn't find anything useful. I tried to…
0
votes
1 answer

PDFJsAnnotations Uncaught (in promise) SyntaxError: Unexpected end of JSON input

tried to load saved json from local storage using JSON.parse(localStorage.getItem("CanvaData")) ready() { console.log("Plugin initialized successfully"); var arr = JSON.parse(localStorage.getItem("CanvaData")); console.log(arr) //…
WhiteWolf
  • 29
  • 1
  • 10
0
votes
1 answer

How to find all internal links in a PDF, using Java Apache PDFBox

I am using the following code (Kotlin) to find hyperlinks in a PDF import org.apache.pdfbox.pdmodel.PDDocument import org.apache.pdfbox.pdmodel.interactive.action.PDActionURI import…
fmkatz
  • 39
  • 1
  • 4
0
votes
1 answer

How can I transfer annotations between PDFs (e.g. using pymupdf)

I have been looking through the pymupdf documentation, and while there is a lot there and I can see how to identify annotations (Annot class), I can't work out how to put an annotation that I have found in one document from that one into another.…
Diomedea
  • 193
  • 1
  • 9
0
votes
1 answer

Difference between FPDFAnnot_SetRect and FPDFAnnot_AppendAttachmentPoints when adding a annotation to pdf document

I'm using pdfium to add annotations to pdf files. I opened the pdf file using Notepad++ and viewed its objects. Annotation object was present inside the Page object as follows, 3 0 obj <
0
votes
2 answers

How can I export the stamp annotation from image to an image file?

How can I export the “stamp annotation from image” to an image file? I have a pdf which contains stamp annotions (in fact it's an image), I want to export all these kinds of images to file and get the x/y position. I am new to pdf. Any idea or code…
Swell Yu
  • 50
  • 5
0
votes
0 answers

PDFAnnotation Radiobutton don't change background color or don't display value

I use PDFKit in iOS as PDF renderer and I have problem with background color in radio button. I iterate all PDF annotations on all pages in the document. override func viewDidAppear(_ animated: Bool) { //let pdfData = ... received data from file…
Puty
  • 100
  • 1
  • 13
0
votes
1 answer

PDF Anotations readonly .NET

I have a system that's adding anotations to a PDF in form of images. At present if users download the PDF they can click on the anotations and play with then: move, resize, remove... I'd like a way to change the anotation to be readonly or to make…
vmasanas
  • 503
  • 1
  • 7
  • 18
0
votes
1 answer

Rander PDFAnnotation within new PDF

I followed this article to signature the PDF using PDFAnnotation you can download the project using in the article here my problem is because it's PDFAnnotation if I download the pdf on my computer and then open it with Preview or any PDFviewer…
Basel
  • 550
  • 8
  • 21
0
votes
1 answer

How to add circle annotation in pdfkit swift?

I am using pdfkit and added circle annotation with fixed size and width but i want to draw with dynamic height and width. Here is my code : Here : start is my CGPoint from where i start to finger end is second CGPoint where i ended to move…
Mahesh Shahane
  • 489
  • 5
  • 16