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
1
vote
1 answer

Setting a CGPDFObjectRef to value

Does anyone have a way to change the information contained in a CGPDFObjectRef? Basically since CGPDFObject can represent any of the subtypes (CGPDFInteger, ie.) you would think you could set an existing CGPDFObjectRef that is type integer to an…
Jesse Naugher
  • 9,780
  • 1
  • 41
  • 56
1
vote
1 answer

CGPDFDocumentCreateWithURL is giving me 0x0 nil

I have file test.pdf in my Application Bundle. I run test in iPhone Simulator (iPad) and I cannot get the CGPDFDocumentRef populated. Am I going crazy or what?!? here is a piece of code from the sample application made especially for this…
Sasho
  • 3,532
  • 1
  • 31
  • 30
1
vote
1 answer

PDF parsing for an eBook app

Looking for some help on the pros and cons of using UIWebView vs. CGPDF for the purpose of creating an eBook reader app. The content would be in the form of PDF, thus I am trying to figure out which of the two API's - UIWebView or CGPDF would work…
gloria_679
  • 11
  • 3
1
vote
1 answer

iphone PDF view CGPDFDocument

I am developing an app where I need to show PDF documents. After many hours of googling I was able to build up a view to show the PDF document fetched from a URL. I know only to display a single page. using CGPDFDocumentGetPage(ref,…
i.novice
  • 11
  • 3
1
vote
2 answers

iPhone: CoreGraphics and memory management

Can someone tell me what I am doing wrong here? I use this method to flip through pages in a PDF. But something in the code seems to not be released properly because every-time I pull a PDF page that contains an image my memory footprint increases.…
carloe
  • 1,440
  • 3
  • 18
  • 26
1
vote
0 answers

Message send to deallocated instance of viewcontroller when popviewcontroller

I'm developing an app using ARC with a navigation controller, the first view controller have a button linked to an ibaction that call the push of the second view controller. In the second viewcontroler a button pop the view controller to the first…
1
vote
0 answers

CFString Dispose random crash

I am trying to create a thumbnail image of pdf in Monotouch but the app crashes sometimes and throws below error. Stacktrace: at MonoTouch.CoreFoundation.CFString.Dispose () [0x00000] in…
j2brian703
  • 23
  • 3
1
vote
1 answer

Duplicate CGPDFStrings from a CGPDFArray generated from a TJ callback on a PDF stream

OK, so I'm parsing through the PDF content stream, discovered that the TJ callback produces an array of strings, so I grab it and start iterating through it to get the string values like so: static void Op_TJ(CGPDFScannerRef s, void *info) { …
Ptemple
  • 125
  • 6
1
vote
1 answer

Load auto paged pdf in iOS like iBook

In iBook, when you open a PDF, you can auto format and paged the pdf, e.g. if in iPhone, there are 5 pages, but when you view with iPad, it only contains 2 pages. When you change the text size, the page also updated automatically. How to do this…
Ryan
  • 10,041
  • 27
  • 91
  • 156
1
vote
1 answer

Why PDF text showing operators don't show white space?

I'm parsing a PDF with Apple's Quartz framework. The text showing operators I put (Tj, TJ, ', ") don't show space for some fonts. Have you any idea why this occurs ? My thought is just because the PDF file is made that way. But here comes another…
bob
  • 382
  • 2
  • 17
1
vote
1 answer

reflow text in PDF documents (iPhone, CGPDFDocumentRef)

I'm using CGPDFDocumentRef to render PDF content for an ebook app. This works great, but it seems to preclude allowing the user to read text in "landscape mode" by tilting the phone- I have no way to reflow the text to make use of the wider space. …
George Armhold
  • 30,824
  • 50
  • 153
  • 232
1
vote
0 answers

Create a PDF file with multiple pages in Quartz2d

I am currently working on an iOS PDF reader. I am able to draw annotations on pages of a PDF file. However, I cannot export such a PDF file with more than one page. I wrote a function which can export only the first page: -…
Daniel Lam
  • 11
  • 1
1
vote
3 answers

PDF colours weird via web view and CGPDFDocumentCreate, yet not in preview

I've been using a couple of methods in an iPad app for over a year now, largely based on apple code available here to display PDF pages nicely - it's worked fine for dozens of different PDFs until now. I just got a bunch of PDFs that appear to be…
Scott Corscadden
  • 2,831
  • 1
  • 25
  • 43
1
vote
2 answers

EDIT CGPDFObject of the pdf

i try long time to parse a pdf file with quartz cgpdf api, but my question is true that CGPDF API can't edit the object saved in the pdf? it mean the api used just only for reading file?
0
votes
1 answer

Create pdf in proper format

I want to create PDF with proper format like proper text and image would be on proper format like normal PDF file. I know how to create PDF with image and text but I don't know how to format it & I also know that PDF can be converted from HTML by…
Aakil Ladhani
  • 984
  • 9
  • 32