Questions tagged [cgpdfdocument]

cgpdfdocument is part of Apple's Core Graphics framework. It specifically refers to a document that contains PDF (Portable Document Format) drawing information used in this framework. Use this tag for questions related to this type of document.

cgpdfdocument is part of Apple's Core Graphics framework. It specifically refers to a document that contains PDF (Portable Document Format) drawing information used in this framework. Use this tag for questions related to this type of document.

104 questions
20
votes
3 answers

Reading PDF files as string through iPhone application

I am facing some problem in iPhone application development for "Reading PDF". I have tried following code. I know I have used wrong methods for parsing - parsing methods are just used for searching purpose. But I want to convert entire pdf text in…
sagarkothari
  • 24,520
  • 50
  • 165
  • 235
14
votes
1 answer

CGPDFDocumentRef from NSData

I get my PDF from SQLite DB into a NSData variable. Now what are my options to create CGPDFDocumentRef from this NSData? Or what are my options anyway to create this CGPDFDocumentRef, have the data in SQLite?
Oleg Danu
  • 4,149
  • 4
  • 29
  • 47
13
votes
2 answers

How to show a PDF page by page using horizontal swipe in iphone?

I want to create a page by page PDF reader. I know how UIWebView can be used to show the PDF but It will load the entire PDF and want to show one page at a time. The PDF is stored locally. Next and previous PDF Pages should be loaded depending on…
Roger_iPhone
  • 737
  • 1
  • 9
  • 20
11
votes
2 answers

Show PDF in iPad using CGPDF APIs

I have learned Apple has release CGPDF APIs in SDK 3.2 for drawing PDF context. What I understand from these APIs is that you can draw a PDF to a data object or a PDF file. You can then export it, may be, to your sandbox's directory OR add as an…
AJ.
  • 1,443
  • 7
  • 19
  • 31
9
votes
1 answer

write lines on PDF

I want to write line by line on a pdf document the code I have is writing the text in the center of the page how can I write line by line? // Create a new PDF document PdfDocument document = new PdfDocument(); document.Info.Title = "Created with…
Ateeq
  • 797
  • 2
  • 9
  • 27
9
votes
3 answers

PDF viewing/annotating library for iPhone?

I am currently working on an educational project where I would like to add some PDF reading functionality to an iPhone app. I know that it is possible to add a UIWebView and display the PDF there, however I would like to add the ability to show page…
Jack
  • 3,878
  • 15
  • 42
  • 72
9
votes
5 answers

Is there a way to programmatically scroll to a PDF page within a UIWebView?

It is possible to use JavaScript to set the pixel y-offset of a UIWebView, e.g.: [webView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"scrollTo(0, %d)", offset]]; So is there a way to get: The pixel height of an individual…
Alex Reynolds
  • 95,983
  • 54
  • 240
  • 345
9
votes
4 answers

How to access hyperlinks in PDF documents (iPhone)?

Is it possible to get access to "internal" links in PDF documents using CGPDFDocument, or other means? I'm building a simple reader app and would like to deliver my content in PDF form, but if I can't support links between pages in the doc this…
George Armhold
  • 30,824
  • 50
  • 153
  • 232
8
votes
1 answer

How to digitally sign a PDF using X.509 certificate data from iOS application

I am generating PDF's in my app. I want to give the best security to these pdf's generated through my app. I have added the default security options provided by Apple, like Owner password, allow copying, allow printing etc... But I would like to add…
Jagadeeshwar
  • 863
  • 11
  • 25
6
votes
1 answer

What's the best approach for modifying PDF interactive form fields on iOS?

I've been doing some head banging on this one and solicit your advice. I am building an app that as part of it's features is to present PDF forms; meaning display them, allow fields to be changed and save the modified PDF file back out. UIWebViews…
gbreen
  • 61
  • 3
6
votes
1 answer

Rendering a CGPDFPage into a UIImage

I'm trying to render a CGPDFPage (selected from a CGPDFDocument) into a UIImage to display on a view. I have the following code in MonoTouch which gets me part way there. RectangleF PDFRectangle = new RectangleF(0, 0,…
James Antrobus
  • 409
  • 4
  • 16
5
votes
2 answers

Get CGPDFDocumentRef name of document

Is it possible to retrieve the name of a document from a CGPDFDocumentRef
Thizzer
  • 16,153
  • 28
  • 98
  • 139
5
votes
5 answers

How to get actual pdf page size in iPad?

How can I get PDF page width and height in iPad? Any document or suggestions on how I can find this information?
user344799
  • 67
  • 1
  • 2
  • 8
5
votes
1 answer

PDFKitten is highlighting on wrong position

I am using PDFKitten for searching strings within PDF documents with highlighting of the results. FastPDFKit or any other commercial library is no option so i sticked to the most close one for my requirements. As you can see in the screenshot i…
SMP
  • 586
  • 3
  • 12
4
votes
0 answers

Replace image(s) in PDF in swift. How to get image position in page?

I need to replace images in a PDFDocument or CGPDFDocument. I found a way to extract images using the old Core Graphics API (i.e. not PDFKit). Here. Now I would like to make a copy of a PDF but by replacing the existing images. How can I get the…
vomi
  • 993
  • 8
  • 18
1
2 3 4 5 6 7