Re: rendering PDF on iPad's

2010-05-26 Thread Gustavo Pizano
Hello all. Another question still regarding with pdf's. when I load a pdf into a web view, I can tap for a while and the magnification loop will appear, this doesn't happens when using Quartz.. I was reading some post on internet, and the authors create their own magnification view. Is there

Re: rendering PDF on iPad's

2010-05-26 Thread Gustavo Pizano
Oh sorry, I should have read before posting the question again, I see somebody its talking abour PDFSelection, and I say an example in the developer site. So for the selection I will check that. Now I have only the question about the loupe :S thanks for any help G. On 26.5.2010, at

rendering PDF on iPad's

2010-05-19 Thread Gustavo Pizano
Hello all. I would want to know if I can render pdf into iPad using quartz, or I have to use UIWebView... or whats the way to achieve this? Any headlights are appreciate it. thanks Gustavo ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: rendering PDF on iPad's

2010-05-19 Thread Laurent Cerveau
Gustavo You can use the CGPDF API. However be careful on memory usage (in particular keeping the CGPDFDocument open all the time could lead to some memory issues that could be workarounded by closing and reopening it) Regards laurent On Wednesday, May 19, 2010, at 12:07PM, Gustavo Pizano

Re: rendering PDF on iPad's

2010-05-19 Thread Mike Abdullah
UIWebView is the easiest way to view PDFs. But if you want any editing or other custom manipulation, will need to drop down lower to CoreGraphics. On 19 May 2010, at 11:07, Gustavo Pizano wrote: Hello all. I would want to know if I can render pdf into iPad using quartz, or I have to use

Re: rendering PDF on iPad's

2010-05-19 Thread Gustavo Pizano
Hello Jack and Laurent. So I will see the CGPDF API, also what Jack wrote. The idea its very simple, load pdf and be able to add notes, as I understand I can inject the notes object in the pdf strucutre, correct me if Im wrong please, this is the first time Im gonna be doming something like

Re: rendering PDF on iPad's

2010-05-19 Thread Jack Nutting
On Wed, May 19, 2010 at 1:06 PM, Gustavo Pizano gustavxcodepic...@gmail.com wrote: Hello Jack and Laurent. So I will see the CGPDF API, also what Jack wrote. The idea its very simple, load pdf and be able to add notes, as I understand I can inject the notes object in the pdf strucutre,  

Re: rendering PDF on iPad's

2010-05-19 Thread Gustavo Pizano
Aha .. ok.. :P np. G On 19.5.2010, at 13:11, Jack Nutting wrote: On Wed, May 19, 2010 at 1:06 PM, Gustavo Pizano gustavxcodepic...@gmail.com wrote: Hello Jack and Laurent. So I will see the CGPDF API, also what Jack wrote. The idea its very simple, load pdf and be able to add notes, as

Re: rendering PDF on iPad's

2010-05-19 Thread Gustavo Pizano
Laurent hi. About your warning. SO If I have a pdf of many many pages, I shall just open de CGPDFDocument, then get the required page using CGPDFDocumetnGetPage(), dra the page then release the CGPDDocument?.. and when swapping pages just release the current page, open document again get next

Re: rendering PDF on iPad's

2010-05-19 Thread Rafael Cerioli
Hi Gustavo, When you draw a CGPDFPageRef into a graphic context, Quartz will hold images inside the PDF page in a sort of cache (at least, it seems with Instrument Object Alloc). You can only empty that cache by destroying the CGPDFDocumentRef. However, if you do not destroy your

Re: rendering PDF on iPad's

2010-05-19 Thread Gustavo Pizano
Rafael hi Thanks for the info,, I will be testing the behavior with some pdfs and see whats better, to keep the CGPDFDocumentRef and destroy it when closing the pdf.. or open-close each time I change.. I guess I must decided what I want speed vs memory usage. G, On 19.5.2010, at