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
70
votes
2 answers

How to make annotation like highlighting, strikethrough, underline, draw, add text, etc in android for a pdf viewer?

Many applications like RepliGo, Aldiko, Mantano, ezPdf in android market make this type of annotation in their pdf viewer shown in the below image. I tried in many ways to implement this annotation but I failed. I have a pdf viewer for android and…
BobDroid
  • 1,898
  • 5
  • 19
  • 39
6
votes
0 answers

How to extract text from an annotation using pdf.js or pdf-annotate.js?

We have need to programmatically annotate a .pdf file and then extract the text from within that annotation. The use case would be to say highlight a few words yellow and then not only get the meta about the annotation (this is solved already), but…
atconway
  • 20,624
  • 30
  • 159
  • 229
4
votes
2 answers

iOS PDFKit: make Text Widget PDFAnnotation readonly

I would like to make the Text Widget PDFAnnotation readonly. I tried to set the isReadOnly flag to true, but it doesn't seem to make any difference. The user is still able to edit the annotation after tapping it.
crcalin
  • 979
  • 6
  • 13
4
votes
1 answer

Copy PDF with Annotations using iText

We need to import existing multiple PDFs into a single new PDF. Part of codes work similar to the sample codes in section 6.2.1 of iText in Action 2nd edition: Document document = new Document(); PdfWriter writer = PdfWriter.getInstance( …
MichaelYu
  • 555
  • 2
  • 6
  • 16
4
votes
2 answers

How to Merge PDF file with Annotation

i used this link 's code to merge pdf file ,pdf merge sucessfully with loss of annotation i want to merge pdf with annotattion i checked following link: How to Merge Multiple PDF Files Into One PDF Merge 2 pdf files in iOS any other method to merge…
kirti Chavda
  • 3,029
  • 2
  • 17
  • 29
3
votes
1 answer

Restrict to move/drag the pdf annotation within PDF Page boundary

I am loading one PDF on PDF view using the PDF kit library. I added one custome view (same like PDF Annotation) on pdf view, and I am allowing users to move/drag that custom view on pdf view(within pdf view/container view) using…
Nikita Patil
  • 674
  • 1
  • 7
  • 17
3
votes
1 answer

Issue while flattening PDF using PDF-lib in JavaScript

I successfully created a fillable form using PDF-lib (https://www.npmjs.com/package/pdf-lib). But I am getting following error while flattening it. Unhandled Rejection (Error): Failed to find page undefined for element mahesh_Signature_0 Here…
Blackhawk
  • 57
  • 1
  • 5
3
votes
1 answer

version control and merging with pdfs; constantly updated annotations

I am using lots of pdfs for my research and studies. I highlight the important statements and claims with color code, and often add text annotations to the pdf as well. I do all these at my work PC, at my home pc and also on my tablet. I am looking…
Horror Vacui
  • 195
  • 8
3
votes
1 answer

Erase pdfAnnotation added using pdfkit

I used the below code to draw a line to a pdfpage. Is there any way i can erase the annotation like an eraser when user drags over it. let lineAttributes: [PDFAnnotationKey: Any] = [ .linePoints: [startPoint.x, startPoint.y, point.x, point.y], …
Faheem Rahman
  • 343
  • 2
  • 10
3
votes
3 answers

Ghostscript won't convert PDF to PDF/A. Annotation Issue

I'm trying to convert a PDF to PDF/A. At every pass I'm getting the error "GPL Ghostscript 9.19: Annotation set to non-printing, not permitted in PDF/A, reverting to normal PDF output". The PDF has previously been generated from HTML by…
Will H
  • 33
  • 1
  • 3
2
votes
0 answers

How to add signature to PDF using PDFKit and sticker view?

I am trying to add signature to PDF using PDFKit. What I have tried: add annotation as given by PDFKit framework. give annotation type to signature save annotation to PDFPage This is working fine I have used extension to drag signature image to…
KrishnDip
  • 81
  • 10
2
votes
1 answer

How do you move a PDFAnnotation on a PDFPage within a PDFView?

I'm working with PDFKit and similar to the Apple Preview App, when adding PDF annotations, I'd like the user to be able to move them around on the page. I've created an example project on Github. I've tried subclassing PDFView and overriding func…
Tom J
  • 106
  • 2
  • 14
2
votes
1 answer

Why pdf annotation Y position starts from the bottom of the page in ios, pdfkit, swift

I tried to add an annotation to the page in pdf. it works. but not in the desired position. here is the way I added annotation. let annotaionpos = CGRect(origin: points, size: CGSize(width: 80, height: 30)) let annotation = PDFAnnotation(bounds:…
Marlon Brando aka Ben
  • 863
  • 1
  • 14
  • 33
2
votes
2 answers

How do I disable to edit PDFAnnotations?

I'm builting iOS app in Swift 4.2 that can make signature to PDF file. But in case Embeding the signature as PDFAnnotation, it can editable in apple's Preview app or other app which can edit pdf. How can I disable to edit PDFAnnoations…
2
votes
1 answer

PDFAnnotation only appears when editing

I'm working with annotations in pdf file. The problem is that text filled in annotation's text field is only visible while editing. As soon as I stop editing this text field, text disappears. I'm filling annotations this way: for index in…
Alexandr Chekel
  • 382
  • 2
  • 15
1
2 3 4 5 6