SlideShare a Scribd company logo
PDF & iOS
Dritte per sfogliare e cominciare a “disegnare” su
                      un PDF




                        1
Argomenti affrontati


iOS & PDF

Open Source iOS PDF Reader Core

Appunti a mano libera su PDF




                   2
iOS & PDF


Apple supporta pienamente la visualizzazione
e gestione dei PDF tramite Quartz 2D

Le classi CGPDF* foniscono tutti i metodi per
gestire un PDF




                    3
Quartz 2D




    4
Quartz 2D

CGPDFDocument: “encapsulates a document that
contains PDF drawing information”

CGContextDrawPDFPage: “after you create a
CGPDFDocument object, you can draw it to a
graphics context”

ZoomigPDFViewer (esempio Apple)



                       5
Quartz 2D

        Documentazione Ufficiale Apple


    https://developer.apple.com/library/ios/#documentation/
  GraphicsImaging/Conceptual/drawingwithquartz2d/dq_pdf/
dq_pdf.html#/ /apple_ref/doc/uid/TP30001066-CH214-TPXREF101




                             6
iPDFdev
http://ipdfdev.com/




         7
iOS PDF Reader Core
Progetto Open Source sviluppato da VFR

Già implementate funzioni principali, tranne la
ricerca

Facile aggiunta di funzionalità

Possibilità di modificare l’interfaccia grafica

github.com/vfr/Reader & github.com/vfr/
Viewer

                     8
UI iPhone (Reader)




        9
Disegnare su PDF con
     CGContext

Creare un PDF tramite un context grafico
CGPDF*

Creare un nuovo PDF, unendo un PDF
esistente con un disegno, sempre nel context




                    10
Smooth Line UIView


Progetto Open Source creato da Levi Nunnink

Disegnare line “senza spigoli” utilizzando
Quartz e non OpenGL

github.com/levinunnink/Smooth-Line-View




                     11
Smooth Line UIView


Singola pagina del PDF diventa immagine di
sfondo della Smooth Line UIView

La nuova pagina del PDF viene creata unendo
nel context immagine di sfondo con linee
disegnate dall’utente



                   12
13
Demo PDFSign
https://github.com/darthpelo/PDFSign




                 14
Grazie :-)
http://www.slideshare.net/AlessioR/talklab-pdf-01


                    Alessio Roberto
                    @alessioroberto
                alessio@alessioroberto.it




                           15

More Related Content

PDF
Dark side of Xcode: iOS Framework
PDF
Widget iOS: how to use them well
PDF
iOS design patterns: blocks
PDF
SEO: Getting Personal
PDF
Lightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika Aldaba
PDF
Succession “Losers”: What Happens to Executives Passed Over for the CEO Job?
PDF
Gestire i pdf con iOS
PDF
Gestire i pdf con IOS - Maurizio Moriconi - WhyMCA
Dark side of Xcode: iOS Framework
Widget iOS: how to use them well
iOS design patterns: blocks
SEO: Getting Personal
Lightning Talk #9: How UX and Data Storytelling Can Shape Policy by Mika Aldaba
Succession “Losers”: What Happens to Executives Passed Over for the CEO Job?
Gestire i pdf con iOS
Gestire i pdf con IOS - Maurizio Moriconi - WhyMCA
Ad

PDF & iOS