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

Poor quality of CFGPDF rendered in bitmap context

Is there a way to render a PDF page into bitmap context without losing quality? Here is my code: -(UIImage *)imageForPage:(int)pageNumber sized:(CGSize)size{ CGPDFDocumentRef _document = [self CreatePDFDocumentRef:filePath]; CGPDFPageRef…
Janusz Chudzynski
  • 2,700
  • 3
  • 33
  • 46
0
votes
2 answers

Drawing geometry (circle or rect) on zoomable CGPDF document using QuartzCore

    I am trying to draw on touches (mouse tap) on the pdf document generated by CGContextRef from my resource bundle. I have started from Apple zoomingpdfviewer where I have a UIScrollView and Pdf is generated by CGContextDrawPDFPage(context,…
Vacca
  • 1,219
  • 16
  • 26
0
votes
0 answers

How to release a CGPDFArrayRef object in iOS?

I am using the following method fro pdf manipulation CGPDFDictionaryRef pageDictionary = CGPDFPageGetDictionary(pPage); CGPDFArrayRef outputArray; if(!CGPDFDictionaryGetArray(pageDictionary, "Annots", &outputArray)) { } On analyzing using xcode…
Priyanka V
  • 834
  • 2
  • 12
  • 34
0
votes
1 answer

PDF file is loaded into CGPDFDocumentRef, but it doesn't display in view

I would like to use CGPDF API to show and manipulate the PDF on IPAD, but firstly, I'm trying to just show PDF on my view from the easy way (without screen adjusts). I don't know why PDF doesn't appear im my application, maybe i'm doing sth wrong.…
jbernardo
  • 161
  • 1
  • 4
  • 14
0
votes
1 answer

XCode flipping pdf orientation

I'm doing some drawing on pdfs, and I've found what may be a problem on Xcode handling of pdf dimensions, which then become clear when CGPDFDocumentCreateWithURL is triggered. I have two PDFs. One is A4 portrait size (612w x 792h) and it displays…
Neil MCCABE
  • 67
  • 1
  • 10
0
votes
0 answers

Can't read/write to properties of an Objective-C class from within a CGPDFOperator C function

OK, so I'm using C callback functions being run from a CGPDFScanner. These functions are within a class called PDFContentStreamProcessor with an NSMutableArray property called myArray ARC is enabled, but I made an exception in the build phases for…
Ptemple
  • 125
  • 6
0
votes
1 answer

PDF thumbnails in iPad are blurry

I am creating thumbnails and showing those thumbnails in gridView(using AQgridView). Thumbnails shown in gridView is too blurry and is not what I want. I am attached my code. Please help. Here is my code:- - (void)viewDidLoad { [super…
user1288005
  • 890
  • 2
  • 16
  • 36
0
votes
2 answers

How to attach CGPDFDocument/CGPDFPage to MFMailComposeViewController

I have a muti page pdf document stored on local storage. I want to extract any page out of that pdf doc and convert it into NSData to attach it with 'MFMailComposeViewController'. With the following lines of code, I can easily retrive the required…
0
votes
1 answer

Why is a CGPDFDocumentRef showing blurry lines on the view? (See Image)

I have a very strange and particular case on which I want to show a PDF on the screen. However, the problem is that my document is showing blurry lines, not shown on the program Acrobat Pro. Watch this image: https://i.stack.imgur.com/D7GWF.jpg Is…
ibjazz
  • 263
  • 5
  • 17
0
votes
1 answer

cgimagesourcecreatewithurl pdf

I'm trying to load thumb images in CGPDFDocument. I wrote the following code in a function called main in class ReaderThumbFetch. NSURL *thumbURL = [self thumbFileURL]; CGImageRef imageRef = NULL; CGImageSourceRef loadRef =…
user1553381
  • 415
  • 2
  • 13
  • 30
0
votes
1 answer

can we save the contents drawn on the pdf as a new pdf ? xcode

Can we save the contents drawn over the pdf , as pdf again , i tried to save the pdf with the contents but with no luck , it saves with blank pdf the code: - (void)drawRect:(CGRect)rect { NSString *pathToPdfDoc = [[NSBundle mainBundle]…
jarus
  • 1,853
  • 11
  • 44
  • 76
0
votes
1 answer

Can't access ivar CGPDFPageRef

I can't access the CGPDFPageRef and CGPDFDocumentRef of my ReaderControllerView from my ContentViewController. I declared them under @public in my header file like this: @interface ReaderContentPage : UIView{ @public CGPDFDocumentRef…
user1412469
  • 279
  • 5
  • 17
-1
votes
2 answers

Converting PDF to Image - Swift iOS

I am trying to convert a PDF file and all its pages to png images. I have put together the code below filling the example on this thread How to convert PDF to PNG efficiently? When I run the code, it crashes on the pdf file source (sourceURL) there…
wades
  • 250
  • 2
  • 10
-2
votes
2 answers

iOS: How retrieve 'page number label' of a page in pdf?

I have a pdf , where page 1 is having page number as roman 1 i.e. "i" Now how to get this information. I know using catalogues i can get page label dictionary CGPDFDictionaryRef catalog = CGPDFDocumentGetCatalog(document); if…
Satyam Raikar
  • 465
  • 6
  • 20
1 2 3 4 5 6
7