1 / 16

Graphics in PDF

Universität zu Köln Intelligente Dateisysteme Prof. Dr. Manfred Thaller WS 2013/14. Graphics in PDF. Leonard Bornefeld-Ettmann. Inhaltsverzeichnis. Content Stream Grafik-Operatoren Grafikobjekte in PDF Koordinatensysteme User Space / Device Space Graphics State

hagop
Download Presentation

Graphics in PDF

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Universität zu Köln Intelligente Dateisysteme Prof. Dr. Manfred Thaller WS 2013/14 Graphics in PDF Leonard Bornefeld-Ettmann

  2. Inhaltsverzeichnis • Content Stream • Grafik-Operatoren • Grafikobjekte in PDF • Koordinatensysteme • User Space / Device Space • Graphics State • Path Construction • Farbräume und Patterns • Externe Objekte / Images

  3. Content Stream “[…] the data in a content stream shall be interpreted as a sequence of operators and their operands“ „[…] a PDF content stream is not a program to be interpreted; rather, it is a static description of a sequence of graphics objects. “

  4. Grafik-Operatoren Grafikoperatoren im PDF contentstream: • Graphics stateoperators • Path constructionoperators • Path-paintingoperators • Other paintingoperators • Text operators • Marked-content operators

  5. Grafikobjekte in PDF pathobject textobject externalobject (XObject) inline image shadingobject

  6. Koordinatensysteme • sind relativ zueinander • Transformation durch Matritzen (-> 6-stelliges Array) • Mögliche Transformationen: • Verschiebung • Skalierung • Rotation • Verdrehen

  7. User Space / Device Space CTM (currenttransformationmatrix) devicespace= Koordinatensystem des Ausgabegeräts userspace= vom Ausgabegrät unabhängiges Koordinatensystem (->Darstellung wird von der Auflösung des Anzeigegeräts nicht beeinflusst) User spacedefaultspace

  8. Graphics State wird am Beginn jeder Seite initialisiert beinhaltet Parameter zur grafischen Darstellung Beispiel für einen vom Ausgabegerät unabhängigen Parameter:

  9. Path Construction • nicht Teil des graphicsstate • Ablauf: 1. „currentpath“ wird zunächst nur angelegt 2. Zeichnung durch paintoperator 3. „currentpath“ wird leergeschrieben • Kurven werden mithilfe von Bézierkurven generiert

  10. Farbräume • colourspecification : • colourrendering: ->vom Ausgabegerät abhängig ->nicht in der Seitenbeschreibung festgelegt

  11. Patterns • Tilingpatterns • patterncell wird horizontal oder vertikal dupliziert • Farbe kann inherent sein oder bei jeder Benutzung neu definiert werden • Shadingpatterns • für glatte Farbübergänge • wird mit dem shadingoperator realisiert • Kann in allen Farbräumen nach unterschiedlichen Regeln realisiert werden

  12. Externe Objekte • außerhalb des contentstream • drei Typen: • imageXObject • form Xobject • PostScript XObject (-> nicht empfohlen)

  13. Images • imageXobject (extern): • externer stream • erlaubt unterschiedliche Versionen desselben Bildes • Maskierung / Durchsichtigkeit • inline image (intern): • wird innerhalb des contentstream initialisiert • nur für kleine Bilder vorgesehen • nur devicecolourspaces

  14. Form XObjects unabhängige Abfolge von Grafikobjekten produziert stets dasselbe sichtbare Resultat groupXObjectdient zur Gruppierung von Grafikelementen zu einer Einheit Reference Xobjectserlauben den Import von Inhalt aus einem anderen PDF Dokument

  15. Vielen Dank für die Aufmerksamkeit !

More Related