Indoctrinatr – Open Source PDF generation service

Post on 27-Jun-2015

130 views 0 download

Tags:

description

In a time where more and more tasks happen directly in the web and media suggests the "paperless office" to be within reach, digital documents take on an important role. The PDF format is one very interesting standard to work with since PDF documents offer an interesting range of features: * High compatibility with a huge range of devices and operating systems * Preservation of the documents optical appearance * Important documents can be digitally signed * Can be printed and signed manually (e. g. for contracts) * Offline storage of downloaded documents is easy Many libraries exist that allow the creation of PDF documents. Unfortunately most are somehow limited in functionality, require good programming skills or come with high licensing cost. On the other hand an immensly powerful solution to PDF creation under a free license exists with LaTeX. This inspired us at dkd to write an Open Source service to make the power of LaTeX available to web applications via a REST interface. "Indoctrinatr" is a powerful toolkit that enables developers to easily create LaTeX templates that can be accessed via web- or REST-interface and thus create data driven PDF documents with ease. This talk will give a very short introduction to LaTeX and why it is a great choice for PDF creation. By means of different real world examples the advantages of a document generation service will be demonstrated. Within the range of examples will be: * Generation of customised contracts via the web-interface * Generation of data driven graphics within a PDF * Generation of custom address labels with generated barcodes via a TYPO3 extension using the REST-interface

Transcript of Indoctrinatr – Open Source PDF generation service

Indoctrinatr PDF generation service

CEO, dkd Internet Service GmbHSøren Schaffstein

A few words about myselfSøren Schaffstein, CEO of dkd Internet Service GmbH

soeren.schaffstein@dkd.de

The PDF format

–Wikipedia

»Portable Document Format (PDF) is a file format used to

present documents in a manner independent of application

software, hardware and operating systems.«

• Encapsulates a complete description of a fixed-layout flat document • Includes

• text • fonts • graphics • and other information needed to display it

• Is an open standard (ISO 32000-1:2008) • Can be digitally signed • Employs various standardised subsets

PDF format – an overview

• PDF/X "PDF for Exchange” – Graphic technology: Prepress digital data exchange

• PDF/A "PDF for Archive" – Document management: Electronic document file format for long-term preservation

• And more

PDF standardised subsets

PDF is platform independent

• Documents that should be printed. • Documents that should have a specific appearance. • Documents that should be archived.

PDF is great for:

Creating a PDF

• Scan to PDF • PDF printer driver • “Save as PDF” from within an application • Using a software library

Different ways to create a PDF.

LaTeX

pronounced: /ˈlɑːtɛk/ LAH-tek

LaTeX – A document preparation system

LaTeX is a high-quality typesetting system; it includes features designed for the production of technical and scientific documentation.

!– www.latex-project.org

Evolution

• LaTeX is the de facto standard for the communication and publication of scientific documents.

• LaTeX is available as free software. • Allows very easy generation of

• Table of contents • Page numbering • Document headers and footers • Index of important terms in your document

• LaTeX documents are plain text, allowing • Easy use of your favourite VCS • Easy collaboration on documents • Small file sizes

• LaTeX comes with a package system – just like TYPO3 – currently offering approx. 4,800 additional packages.

What you probably already know.

• Links and cross-references • PDF bookmarks • Bibliography • Tables spanning multiple pages • Set PDF metadata • Generation of barcodes, QR codes, etc. • Custom styles for your content • Automatic generation of graphics

What else can LaTeX do for you?

x

f(x)

Sekante

P

f(x0)

x0

Q

x0 + "

f(x0 + ")� f(x0)

"

"

f(x0 + ")

p2

p3

p4p

5p

6

p7

p8

p9p

10 p11 p

12p

13

p14

p15

p16

p17

p18

p19

p20

p21

p22

p23

p24

p25

p26p

27p28

p29

p30

p31

p32

p33

p34

p35

p36

p37p

38p

39p

40 p41 p

42 p43

p44

p45

p46

p47

p48

p49

p50

p51

p52

p53

p54

p55

p56

p57

p58

p59

p60

p61

p62

p63

p64

p65

p66

p67p

68p69p

70p71

p72

p73

p74

p75

p76

p77

p78

p79

p80

p81

p82

p83

p84

p85p

86p

87

p2

p3

p4p

5p

6

p7

p8

p9p

10 p11 p

12p

13

p14

p15

p16

p17

p18

p19

p20

p21

p22

p23

p24

p25

p26p

27p28

p29

p30

p31

p32

p33

p34

p35

p36

p37p

38p

39

p2

p3

p4p

5p

6

p7

p8

p9p

10 p11 p

12p

13

p14

p15

p16

p1

Brilliant!Let’s do everything with LaTeX now.

A very short introduction into LaTeX

Let’s write some LaTeX.Let us start with a very simple paragraph.

Can we have something bold?

How about a little bullet list? • red • green • blue

Can I have a table, please.

Let us start with a very simple paragraph.

Can we have something \textbf{bold}?

How about a little bullet list?!\begin{itemize}!! \item red!! \item green!! \item blue!\end{itemize}

Sorry. Not today.

How to get a PDF from LaTeX?

Challenging Path

Fear not!

Indoctrinatr PDF generation service

How does Indoctrinatr work?

Web-InterfaceREST-Interface

A beautiful & up-to-date contract.

A beautiful diagram.

• Simple ZIP container • Containing configuration • Templates • All required assets

Indoctrinatr template packs.

ExamplesTested under real world conditions. ;)

ACO Drain Design – datasheets

A catalogue challenge

Approximately 15,000 products Approximately 60 languages

ACO Haustechnik – datasheets

ACO Haustechnik – datasheets• Headers and Footers • Optional info boxes • 3 column layout • Optional sections • Tables spanning multiple pages • Links to product website • Up-to-date data from PIM

formhandler finisherUsing the REST-interface to send form data.

DropletUsing the REST-interface to send data.

Roadmap

User Management

Parser Pipeline

Indoctrinatr-Tools

SaaS

? Questions

Thanks a lot!To the Indoctrinatr team at dkd!

Thank you for listening

www.dkd.dedkd Internet Service GmbH . Kaiserstraße 73 . 60329 Frankfurt am Main

List of References“Indoctrinatr – PDF generation service”

Autor: Søren SchaffsteinDatum: 2014-10-13

List of References

Images

[1] ACO Severin Ahlmann GmbH & Co. KG. ACO. The future ofdrainage.

[2] ACO Severin Ahlmann GmbH & Co. KG. Grating.

[3] Media Loot. Location Icon. URL: http://medialoot.com/item/free-vector-map-location-pins/.

[4] Søren Schaffstein. Blue Wave.

[5] Søren Schaffstein. Blurred Flower.

[6] Søren Schaffstein. Challenging Path.

[7] Søren Schaffstein. Climbing a rock.

[8] Søren Schaffstein. dkd Pizza.

[9] Søren Schaffstein. Donut and LEGO Simpsons.

[10] Søren Schaffstein. Green Butterfly.

[11] Søren Schaffstein. Illuminated Trishaw.

[12] Søren Schaffstein. Line of Tags.

[13] Søren Schaffstein. On top of the Rock.

[14] Søren Schaffstein. Protected Place.

[15] Søren Schaffstein. Roadmap.

[16] Søren Schaffstein and Simone Schaffstein. Cactus Ice CreamCone.

[17] taymtaym. Girl in Latex Suit. URL: https://www.flickr.com/photos/taymtaym/13663386063.

[18] texample.net. LaTeX example graphics. URL: http://www.texample.net.

All trademarks, trade names, product names and logos appearing inthis presentation are the property of their respective owners, includingin some instances dkd. Any rights not expressly granted herein arereserved.

Seite 1/1