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
2
votes
1 answer

In iOS, using CGPDFDocumentRef, why is my PDF showing big margins and not the whole page?

Possible Duplicate: how to fit pdf page in entire view I am showing with no problem a PDF, however, the original PDF does not have the big margins shown at the moment I compile the App. My code: In the H File: @interface viewPDF : UIView…
ibjazz
  • 263
  • 5
  • 17
1
vote
1 answer

How to show the downloaded pdf with CGPDFDocumentRef?

I am downloading pdf file from server using this code. NSString *urlString = @"https://developer.apple.com/library/ios/documentation/uikit/reference/UILabel_Class/UILabel_Class.pdf"; NSURL *url = [NSURL URLWithString:urlString]; …
Thukaram
  • 1,085
  • 2
  • 13
  • 33
1
vote
1 answer

saving image from a page of CGPDfDocument is not perfectly fitted in UIImageview

I am having some trouble with saving a PDF page as UIImage...the pdf is loaded from the internet and it has one page(original PDF has been splitted in sever)...but the converted image sometimes is cropped...sometimes it is small and leave white…
Shoeb Amin
  • 599
  • 1
  • 8
  • 18
1
vote
1 answer

Saving a CGPDFDocumentRef to File

I am having a hard time searching for this question, is there no one can answer this question? I am hoping for a good answer with example. follow this question iPhone - pdf encryption but I think PDFDocument class only exists in mac os.and this is…
Lunayo
  • 538
  • 7
  • 32
1
vote
1 answer

What is the equivalent of CGPDFDocumentGetCatalog in Monotouch?

I'm trying to get the catalog of a PDF document but I cannot find CGPDFDocumentGetCatalog. Is it unbound or am I just blind?
Krumelur
  • 32,180
  • 27
  • 124
  • 263
1
vote
1 answer

iPhone - Create PDF using text and image

I've some text entered by user in my app and image is captured from camera. I want to create a PDF using the text and image? I know how to create a PDF as mentioned in URL PDF Creation But I don't know how to create a PDF using both text and…
Satyam
  • 15,493
  • 31
  • 131
  • 244
1
vote
2 answers

Zoom support while page curling effect present in pdf reader app

Hi I am developing an ipad Magazine app where I need to display pdf files.I am using leaves project for page curl effect.This works great. But in landscape page fits to height(768px) and it becomes difficult to read the font. Thats why I want to…
amavi
  • 524
  • 4
  • 14
1
vote
1 answer

CGPDFDocumentRef and autorelease

Is there an autorelease analogous method for CGPDFDocumentRef instances? I'd like to apply this before returning an instance I created. Or can I only do CGPDFDocumentRelease(...) before returning (which is surely wrong)? Since I created the…
Ken
  • 30,811
  • 34
  • 116
  • 155
1
vote
1 answer

PDF zooming inside UIScrollView

I have a 2835 pixel PDF file inside 2835 pixel UIScrollView. To display the PDF I use CATiledLayer. My problem is when I zoom out the scrollView (at scale below 1) the PDF quality gets very bad. What is strange that when I zoom in the scrollView (at…
alex
  • 279
  • 4
  • 14
1
vote
1 answer

Not getting a right resolution of the page of PDF in iOS

I want to know the resolution of the page of PDF. I have tried one solution but getting the wrong resolution (612 x 792). But a correct resolution is 816x1056. guard let provider = CGDataProvider(data: fileData as CFData) else { return } guard let…
Pramod Tapaniya
  • 1,228
  • 11
  • 30
1
vote
1 answer

How to draw PDF with CGPDFDocument in scaled mode?

I am drawing pdf into UIView screen with CGPDFDocument. However i am getting stuck with couple of things while drawing pdf, so your help will appreciated. Requirement: I want my pdf document to be displayed on UIView with some scale, so that my pdf…
1
vote
1 answer

how to fit the pdf to the screen size while rendering using cgpdfdocumentref...?

I am new to ipad application development. I am rendering a pdf book using CGPDFDocumentRef in the iPad. I am able to render the pdf properly which is coming in the centre of the page. Its leaving small length of white space on all the sides. I am…
raj
  • 59
  • 2
  • 9
1
vote
0 answers

Blank View when using CGPDF for showing PDF in iOS 9/10 with Objective-C

I have used Quartz Core and CGPDF to show a zoomable PDF in my app for quite some time, but since Xcode 8 and trying to make my app compatible for iOS 9 and 10, the PDF-code seems to have broken. This is the code I have been using: -…
Jacob
  • 1,310
  • 1
  • 15
  • 29
1
vote
1 answer

How to display a PDF document that includes hyperlinks? (on iOS)

The Situation: I have a pdf document that includes hyperlinks. I would like my iPhone app to display this pdf document, and enable clicking of the hyperlinks. Note: Currently, I am trying to do this with a UIWebView, which unfortunately seems…
m0rtimer
  • 2,023
  • 1
  • 25
  • 31
1
vote
1 answer

Convert String back to PDF

I'm receiving a response containing a String from our RPC server. This String is a PDF converted to a String. In my app I need to convert this string back to a PDF file. I tried a couple of solutions here on Stack but they didn't work form me. The…
Peter Combee
  • 595
  • 4
  • 10