Indoctrinatr – Open Source PDF generation service

69
Indoctrinatr PDF generation service CEO, dkd Internet Service GmbH Søren Schaffstein

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

Page 1: Indoctrinatr – Open Source PDF generation service

Indoctrinatr PDF generation service

CEO, dkd Internet Service GmbHSøren Schaffstein

Page 2: Indoctrinatr – Open Source PDF generation service

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

[email protected]

Page 3: Indoctrinatr – Open Source PDF generation service
Page 4: Indoctrinatr – Open Source PDF generation service
Page 5: Indoctrinatr – Open Source PDF generation service
Page 6: Indoctrinatr – Open Source PDF generation service
Page 7: Indoctrinatr – Open Source PDF generation service
Page 8: Indoctrinatr – Open Source PDF generation service
Page 9: Indoctrinatr – Open Source PDF generation service

The PDF format

Page 10: Indoctrinatr – Open Source PDF generation service

–Wikipedia

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

present documents in a manner independent of application

software, hardware and operating systems.«

Page 11: Indoctrinatr – Open Source PDF generation service

• 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

Page 12: Indoctrinatr – Open Source PDF generation service

• 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

Page 13: Indoctrinatr – Open Source PDF generation service

PDF is platform independent

Page 14: Indoctrinatr – Open Source PDF generation service

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

PDF is great for:

Page 15: Indoctrinatr – Open Source PDF generation service

Creating a PDF

Page 16: Indoctrinatr – Open Source PDF generation service

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

Different ways to create a PDF.

Page 17: Indoctrinatr – Open Source PDF generation service

LaTeX

Page 18: Indoctrinatr – Open Source PDF generation service
Page 19: Indoctrinatr – Open Source PDF generation service
Page 20: Indoctrinatr – Open Source PDF generation service

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

Page 21: Indoctrinatr – Open Source PDF generation service

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

Page 22: Indoctrinatr – Open Source PDF generation service
Page 23: Indoctrinatr – Open Source PDF generation service

Evolution

Page 24: Indoctrinatr – Open Source PDF generation service

• 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.

Page 25: Indoctrinatr – Open Source PDF generation service

• 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?

Page 26: Indoctrinatr – Open Source PDF generation service

x

f(x)

Sekante

P

f(x0)

x0

Q

x0 + "

f(x0 + ")� f(x0)

"

"

f(x0 + ")

Page 27: Indoctrinatr – Open Source PDF generation service

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

Page 28: Indoctrinatr – Open Source PDF generation service
Page 29: Indoctrinatr – Open Source PDF generation service

Brilliant!Let’s do everything with LaTeX now.

Page 30: Indoctrinatr – Open Source PDF generation service

A very short introduction into LaTeX

Page 31: Indoctrinatr – Open Source PDF generation service

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.

Page 32: Indoctrinatr – Open Source PDF generation service

How to get a PDF from LaTeX?

Page 33: Indoctrinatr – Open Source PDF generation service

Challenging Path

Page 34: Indoctrinatr – Open Source PDF generation service

Fear not!

Page 35: Indoctrinatr – Open Source PDF generation service

Indoctrinatr PDF generation service

Page 36: Indoctrinatr – Open Source PDF generation service

How does Indoctrinatr work?

Web-InterfaceREST-Interface

Page 37: Indoctrinatr – Open Source PDF generation service
Page 38: Indoctrinatr – Open Source PDF generation service
Page 39: Indoctrinatr – Open Source PDF generation service
Page 40: Indoctrinatr – Open Source PDF generation service

A beautiful & up-to-date contract.

Page 41: Indoctrinatr – Open Source PDF generation service
Page 42: Indoctrinatr – Open Source PDF generation service
Page 43: Indoctrinatr – Open Source PDF generation service

A beautiful diagram.

Page 44: Indoctrinatr – Open Source PDF generation service
Page 45: Indoctrinatr – Open Source PDF generation service
Page 46: Indoctrinatr – Open Source PDF generation service
Page 47: Indoctrinatr – Open Source PDF generation service
Page 48: Indoctrinatr – Open Source PDF generation service

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

Indoctrinatr template packs.

Page 49: Indoctrinatr – Open Source PDF generation service

ExamplesTested under real world conditions. ;)

Page 50: Indoctrinatr – Open Source PDF generation service
Page 51: Indoctrinatr – Open Source PDF generation service
Page 52: Indoctrinatr – Open Source PDF generation service
Page 53: Indoctrinatr – Open Source PDF generation service
Page 54: Indoctrinatr – Open Source PDF generation service
Page 55: Indoctrinatr – Open Source PDF generation service
Page 56: Indoctrinatr – Open Source PDF generation service

ACO Drain Design – datasheets

Page 57: Indoctrinatr – Open Source PDF generation service

A catalogue challenge

Approximately 15,000 products Approximately 60 languages

Page 58: Indoctrinatr – Open Source PDF generation service

ACO Haustechnik – datasheets

Page 59: Indoctrinatr – Open Source PDF generation service

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

Page 60: Indoctrinatr – Open Source PDF generation service

formhandler finisherUsing the REST-interface to send form data.

Page 61: Indoctrinatr – Open Source PDF generation service
Page 62: Indoctrinatr – Open Source PDF generation service
Page 63: Indoctrinatr – Open Source PDF generation service

DropletUsing the REST-interface to send data.

Page 64: Indoctrinatr – Open Source PDF generation service
Page 65: Indoctrinatr – Open Source PDF generation service

Roadmap

User Management

Parser Pipeline

Indoctrinatr-Tools

SaaS

Page 66: Indoctrinatr – Open Source PDF generation service

? Questions

Page 67: Indoctrinatr – Open Source PDF generation service

Thanks a lot!To the Indoctrinatr team at dkd!

Page 68: Indoctrinatr – Open Source PDF generation service

Thank you for listening

Page 69: Indoctrinatr – Open Source PDF generation service

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