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
1
vote
0 answers

Comment icon for text widget is not showing

I am trying to add a comment icon in pdfView for widget type text. I have used the property iconType. But the icon is not showing. Your help is much appreciated. let annotationBounds = CGRect(x: 169, y: 400, width: 40, height: 40) let…
Ayon Das
  • 21
  • 4
1
vote
1 answer

How to deselect a textbox widget in iOS PDFKit

Is there a way to either ignore when a widget is tapped while still capturing the .PDFViewAnnotationHit notification, or deselecting the textbox widget programmatically?
MweyaMutsvene
  • 543
  • 4
  • 15
1
vote
1 answer

iOS: Text get upside down in drawRect function

I am using PDFKit and create a subclass of PDFAnnotation, I want to set my custom padding when I create a free text annotation, so I try to override drawRect function as below - (void)drawWithBox:(PDFDisplayBox)box inContext:(CGContextRef)context { …
wangshaoping
  • 83
  • 13
1
vote
0 answers

Rotate PDF Signature Appearance (text and background image both) with PdfAnnotation using iText 5.5

I'm trying to rotate PDF signature appearance(text and image) with iText 5.5 (Java Plugin). I'm signing a PDF and displaying some text(layer 2) with background image(layer 0). I want to rotate each page signature appearance by using PdfAnnotation.…
Mohd Amir
  • 11
  • 2
1
vote
0 answers

Creating React Native App with pdf annotation and sign on PDF Function

as I state on the title, I want to develop a project that having ability to open PDF file within the App (React Native), then later we can add annotation, notes, and sign on the PDF (put writing). The pdf is from the server, so I assume we can call…
baycisk
  • 131
  • 2
  • 12
1
vote
2 answers

how to add GestureRecognizer for PDFAnnotation ios swift 4

it's possible to add GestureRecognizer or set on touch to PDFAnnotation func setDocumentAnnotation() { let anotation:PDFAnnotation = PDFAnnotation(bounds: CGRect(x: pointX, y: pointY, width: pointW, height: pointH), forType: .highlight,…
pch
  • 13
  • 6
1
vote
0 answers

iText duplicates /Popup annotations when copying pages

When using the following code to copy annotated pages, iText 7.1.0 duplicates the /Popup annotation, the only difference between the "original" and the duplicate being that one has a /Parent entry and the other doesn't. Unfortunately, the one…
Thomas W
  • 14,757
  • 6
  • 48
  • 67
1
vote
0 answers

Make reply created by itextsharp appear in chronological order

I am using itextsharp to programmatically generate replies to PDF annotations. Everything seems fine, except that the generated replies do not get sorted in chronologic order in Acrobat DC. It appears above manually-created replies, even though it…
Goh Kelvin
  • 11
  • 3
1
vote
0 answers

The setBounds method created a black rectange on the PDF annotation on MacOS 10.13

I have made a PDF Annotation program but when I test it on the Mac OS High Sierra 10.13, I found that all annotations could not be displayed well. Finally I found out it is this code: [pdfannotation setBounds: bound]; Once I delete this code, the…
SuperBerry
  • 1,193
  • 1
  • 12
  • 28
1
vote
1 answer

How do you change the icon size of a PDF sticky note placed via iTextSharp?

I'm trying to enlarge the icon of a PDF sticky note. Here's an image showing the sticky icon that I've stamped on the first page of the PDF for context: I was under the impression the icon was guided by a rectangle that could be manipulated. Here's…
DBlair
  • 9
  • 3
1
vote
1 answer

Embed PDF Viewer with annotation like highlight, scribble, add note using PHP

I have a website build on CakePHP framework. I have already integrated Dompdf library for generating PDF from HTML. And now for viewing the PDF files, I need a pdf reader that will be embedded into the website with limited capabilities so that the…
akash
  • 101
  • 1
  • 9
1
vote
1 answer

How do I mark/unmark, write as Accepted/Rejected/Cancelled a text annotation using iTextSharp C#

I'm working with iTextSharp on Visual Studio. I created a Pdfannotation like that: PdfAnnotation annotation = PdfAnnotation.CreateText(stamper.Writer, rect, "Author", "I write my text", true, "New Paragraph"); stamper.AddAnnotation(annotation,…
Caryluna
  • 87
  • 1
  • 1
  • 7
1
vote
1 answer

3D Annotation and PdfLayer

Suppose that I have two instances layer1 and layer2 of type com.itextpdf.text.pdf.PdfLayer, with layer1 will be used for an instance of typecom.itextpdf.text.pdf.PdfTemplatethat contains a instance of type com.itextpdf.text.Image and layer2 will be…
Ayoub Falah
  • 484
  • 3
  • 19
1
vote
1 answer

Ghostscript: Internal links annotations not-printing in PDF/A-1b

i'm trying to generate a PDF/A-1b document with Ghostscript 9.18 from a batch of scanned document pages. I want to cover the scanned table of content with a layer of document internal links at the first page. But Ghostscript returns an error: GPL…
ruiin
  • 11
  • 3
0
votes
0 answers

PDFAnnotation not dragging when pdfview is zoom in ios swift

I want to drag PDFAnnotation when the pdf view is zoomed in or zoomed out, I can drag Pin when the pdf is not zoomed in. Here is my code which is currently working. import UIKit import PDFKit class ImageStampAnnotation: PDFAnnotation { …
Akash S
  • 17
  • 7