SlideShare uma empresa Scribd logo
1 de 26
A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org
www.pdfa.org
2017-05-15
Samuel Huylebroeck,
Support Engineer
iText software
1
PDF Days Europe 2017
How HTML responsiveness
translates to PDF
Samuel Huylebroeck
iText Software
1
A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org
www.pdfa.org
2017-05-15
Samuel Huylebroeck,
Support Engineer
iText software
A brief introduction
• Samuel Huylebroeck
• Support Engineer @ iText Software
• iText
• PDF Creation and Manipulation library
• In Java and .NET
• Open Source under AGPL
• Developed and maintained by iText Software
2
A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org
www.pdfa.org
2017-05-15
Samuel Huylebroeck,
Support Engineer
iText software
Presentation Overview
1. Introduction to HTML and CSS
2. Responsive Web design
3. Next Generation PDF: Concepts
4. Next Generation PDF: Creation
5. Summary
3
A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org
www.pdfa.org
2017-05-15
Samuel Huylebroeck,
Support Engineer
iText software
1. Introduction to HTML and CSS
4
A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org
www.pdfa.org
2017-05-15
Samuel Huylebroeck,
Support Engineer
iText software
1. Introduction to HTML and CSS
• HTML
• Hypertext markup language
• Structured grouping of content
• HTML Tags
• Surround content
• Provide structural information
• Interpreted by Browsers
5
<!DOCTYPE html>
<html>
<head>
<title>Hello World!</title>
</head>
<body>
<p>Hello World!</p>
</body>
</html>
A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org
www.pdfa.org
2017-05-15
Samuel Huylebroeck,
Support Engineer
iText software
1. Introduction to HTML and CSS
• CSS
• Cascading Style Sheets
• Provide presentation information
• Layout, colors, fonts, etc.
• Inheritance and Classes
• Re-use of styles and style-elements
• HTML & CSS
• Separate content and presentation
• Different views for a single HTML
file
6
h1{h1{
color: red;color: red;
text-decoration: underline;text-decoration: underline;
}}
p{p{
color: black;color: black;
max-width: 70%;max-width: 70%;
}}
img{img{
width: 50%;width: 50%;
margin: 5pt;margin: 5pt;
}}
.bordered{.bordered{
border: solid 1px black;border: solid 1px black;
width: 20%;width: 20%;
margin: 2pt;margin: 2pt;
}}
A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org
www.pdfa.org
2017-05-15
Samuel Huylebroeck,
Support Engineer
iText software
2. Responsive Web Design
7
A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org
www.pdfa.org
2017-05-15
Samuel Huylebroeck,
Support Engineer
iText software
2. Responsive Web Design: Intro
• HTML
• Fixed content
• Representation depends on CSS
• Responsive Design
• Visualization is fluid
• Adapt representation to
the capabilities of the viewer
8
A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org
www.pdfa.org
2017-05-15
Samuel Huylebroeck,
Support Engineer
iText software
2. Responsive Web Design: Why
• Diversification of device types
• A multitude of different devices that can browse the web are in
circulation
• Smartphones, laptops, tablets, notebooks, print media, etc.
• Devices have varying capabilities
• Screen size
• Dynamic orientation
• from portrait to landscape and back
• Users have varying capabilities
• various forms of colourblindness, Near-sightedness, etc.
9
A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org
www.pdfa.org
2017-05-15
Samuel Huylebroeck,
Support Engineer
iText software
2. Responsive Web Design: How
• Media Queries
• Browser queries devices on capabilities
• Screen width, media-type, features
• Render view based on device capabilities
• Specialized CSS
• Change font, widths, image size, positions etc. based on query
results
• Mobile screens: larger font-size, vertical flow, etc.
• Desktops & larger screens: horizontal placement, smaller font-size,
etc.
• Print media: hide interactive and animated features
10
A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org
www.pdfa.org
2017-05-15
Samuel Huylebroeck,
Support Engineer
iText software
3. Next Generation PDF: Concepts
11
A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org
www.pdfa.org
2017-05-15
Samuel Huylebroeck,
Support Engineer
iText software
3. Next Generation PDF: Concepts
• Classic PDF: Challenges
• Static layout
• Representation does not respond to device capabilities
12
A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org
www.pdfa.org
2017-05-15
Samuel Huylebroeck,
Support Engineer
iText software
3. Next Generation PDF: Concepts
13
A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org
www.pdfa.org
2017-05-15
Samuel Huylebroeck,
Support Engineer
iText software
3. Next Generation PDF: Concepts
• Classic PDF: Challenges
• Static layout
• Representation does not respond to device capabilities
• Content structure not required
14
A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org
www.pdfa.org
2017-05-15
Samuel Huylebroeck,
Support Engineer
iText software
3. Next Generation PDF: Concepts
• Build on PDF 2.0
• Aims to address Classic weaknesses
• Static layout
• Lack of structure
• Inspiration from responsive web design
• Multiple ways of presenting content
• Select best view based on viewer capabilities
15
A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org
www.pdfa.org
2017-05-15
Samuel Huylebroeck,
Support Engineer
iText software
• Address static layout by including
alternate views in the PDF
• Base PDF
• Classic PDF
• Default view
• PDF Alternate(s)
• Possible alternate PDF
representation of the same
content
• Selectable based on viewing
device or user preferences
• HTML alternate
• HTML version of the contents in
the Base PDF
3. Next Generation PDF: Concepts
16
A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org
www.pdfa.org
2017-05-15
Samuel Huylebroeck,
Support Engineer
iText software
• Tagged PDF
• PDF 1.4
• Adds logical structure to a PDF
• Basic layout model
• Set of standard structures and attributes
17
3. Next Generation PDF: Concepts
A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org
www.pdfa.org
2017-05-15
Samuel Huylebroeck,
Support Engineer
iText software
• Tagged PDF as a requirement
• Addresses lack of structure
• Derived HTML
• HTML produced from the Tagged PDF using the HTML-
derivation algorithm
• Derive CSS from local styles
18
3. Next Generation PDF: Concepts
A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org
www.pdfa.org
2017-05-15
Samuel Huylebroeck,
Support Engineer
iText software
4. Next Generation PDF: Creation
19
A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org
www.pdfa.org
2017-05-15
Samuel Huylebroeck,
Support Engineer
iText software
4. Next Generation PDF: Creation
20
• PDF from HTML & CSS
• HTML is inherently structured
• CSS and media queries for alternative views
• Challenges
• Conversion from HTML and CSS to PDF syntax
• Not everything in HTML makes sense in the PDF context
(Animations, audio, etc.)
• Pagination
• Floating elements to static coordinates
• Capability for generating multiple views
• Tailored CSS for each view
• Media query support
A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org
www.pdfa.org
2017-05-15
Samuel Huylebroeck,
Support Engineer
iText software
4. Next Generation PDF: Creation
• Several HTML to PDF producers exist already
• iText pdfHTML
• Adobe Acrobat
• pdfChip
• Print from browser
• …
• Example using pdfHTML
• Creation of base PDF and alternate PDFs
• Using tailored CSS and media queries
21
A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org
www.pdfa.org
2017-05-15
Samuel Huylebroeck,
Support Engineer
iText software
22
4. Next Generation PDF: Creation
• Next Generation PDF
• Base content
• Alternate views of base content
• Requires PDF to be tagged
• pdfHTML
• HTML 5 + CSS 3  PDF
• Configurable (Device description, media queries, etc.)
• Customizable (Custom tag and CSS handling)
• Based on iText7
• Support for tagging, high degree of control (page-sizes,
etc.)
A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org
www.pdfa.org
2017-05-15
Samuel Huylebroeck,
Support Engineer
iText software
• Input
• HTML
• CSS
• Output for mobile devices
• Vertically oriented layout
• Large font size
• Output for desktops
• Horizontally oriented layout
• Small font size
• Output for tablet-sized devices
• Horizontally oriented layout
• pdfHTML Tagging
• pdfHTML is built on iText7
• iText7 creates tag-structure during PDF Creation
23
4. Next Generation PDF: Creation
A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org
www.pdfa.org
2017-05-15
Samuel Huylebroeck,
Support Engineer
iText software
5. Summary
24
A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org
www.pdfa.org
2017-05-15
Samuel Huylebroeck,
Support Engineer
iText software
5. Summary
• Responsive Webdesign
• Adapt visualization to viewing device
• Classic PDF Challenges
• Static layout
• Can be without structure information
• Next Generation PDF
• More dynamic layout
• PDF Alternates
• Select best view based on viewer capabilities
• Structure information
• HTML Alternate
• Derived HTML
• Next Generation PDF Creation
• HTML and CSS as base
• Media queries
25
A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org
www.pdfa.org
2017-05-15
Samuel Huylebroeck,
Support Engineer
iText software
26
PDF Days Europe 2017
Thank you! Any questions?
Get in touch: samuel.Huylebroeck@itextpdf.com
Web site: www.itextpdf.com
Twitter: @iText
26

Mais conteĂşdo relacionado

Mais de iText Group nv

Mais de iText Group nv (17)

PDF made easy with iText 7
PDF made easy with iText 7PDF made easy with iText 7
PDF made easy with iText 7
 
Start-ups: the tortoise and the hare
Start-ups: the tortoise and the hareStart-ups: the tortoise and the hare
Start-ups: the tortoise and the hare
 
IANAL: what developers should know about IP and Legal
IANAL: what developers should know about IP and LegalIANAL: what developers should know about IP and Legal
IANAL: what developers should know about IP and Legal
 
Digital Signatures in the Cloud: A B2C Case Study
Digital Signatures in the Cloud: A B2C Case StudyDigital Signatures in the Cloud: A B2C Case Study
Digital Signatures in the Cloud: A B2C Case Study
 
Digital Signatures: how it's done in PDF
Digital Signatures: how it's done in PDFDigital Signatures: how it's done in PDF
Digital Signatures: how it's done in PDF
 
ZUGFeRD: an overview
ZUGFeRD: an overviewZUGFeRD: an overview
ZUGFeRD: an overview
 
PDF is dead. Long live PDF... with Java!
PDF is dead. Long live PDF... with Java!PDF is dead. Long live PDF... with Java!
PDF is dead. Long live PDF... with Java!
 
Digital Signatures: how it's done in PDF
Digital Signatures: how it's done in PDFDigital Signatures: how it's done in PDF
Digital Signatures: how it's done in PDF
 
iText Summit 2014: Talk: iText throughout the document life cycle
iText Summit 2014: Talk: iText throughout the document life cycleiText Summit 2014: Talk: iText throughout the document life cycle
iText Summit 2014: Talk: iText throughout the document life cycle
 
iText Summit 2014: Keynote talk
iText Summit 2014: Keynote talkiText Summit 2014: Keynote talk
iText Summit 2014: Keynote talk
 
iText Summit 2014: Talk: eGriffie and JustX, introducing digital documents at...
iText Summit 2014: Talk: eGriffie and JustX, introducing digital documents at...iText Summit 2014: Talk: eGriffie and JustX, introducing digital documents at...
iText Summit 2014: Talk: eGriffie and JustX, introducing digital documents at...
 
The XML Forms Architecture
The XML Forms ArchitectureThe XML Forms Architecture
The XML Forms Architecture
 
Damn, the new generation kids are getting iPads in Highschool!
Damn, the new generation kids are getting iPads in Highschool!Damn, the new generation kids are getting iPads in Highschool!
Damn, the new generation kids are getting iPads in Highschool!
 
PAdES signatures in iText and the road ahead
PAdES signatures in iText and the road aheadPAdES signatures in iText and the road ahead
PAdES signatures in iText and the road ahead
 
Best practices in Certifying and Signing PDFs
Best practices in Certifying and Signing PDFsBest practices in Certifying and Signing PDFs
Best practices in Certifying and Signing PDFs
 
Choosing the iText Solution that is right for you: Community or Commercial ed...
Choosing the iText Solution that is right for you: Community or Commercial ed...Choosing the iText Solution that is right for you: Community or Commercial ed...
Choosing the iText Solution that is right for you: Community or Commercial ed...
 
The importance of standards
The importance of standardsThe importance of standards
The importance of standards
 

Último

%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
masabamasaba
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 

Último (20)

%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Toronto Psychic Readings, Attraction spells,Brin...
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
 
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa%in tembisa+277-882-255-28 abortion pills for sale in tembisa
%in tembisa+277-882-255-28 abortion pills for sale in tembisa
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
%in Rustenburg+277-882-255-28 abortion pills for sale in Rustenburg
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
tonesoftg
tonesoftgtonesoftg
tonesoftg
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
WSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go PlatformlessWSO2CON2024 - It's time to go Platformless
WSO2CON2024 - It's time to go Platformless
 

1615 huylebroeck-html responsiveness

  • 1. A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org www.pdfa.org 2017-05-15 Samuel Huylebroeck, Support Engineer iText software 1 PDF Days Europe 2017 How HTML responsiveness translates to PDF Samuel Huylebroeck iText Software 1
  • 2. A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org www.pdfa.org 2017-05-15 Samuel Huylebroeck, Support Engineer iText software A brief introduction • Samuel Huylebroeck • Support Engineer @ iText Software • iText • PDF Creation and Manipulation library • In Java and .NET • Open Source under AGPL • Developed and maintained by iText Software 2
  • 3. A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org www.pdfa.org 2017-05-15 Samuel Huylebroeck, Support Engineer iText software Presentation Overview 1. Introduction to HTML and CSS 2. Responsive Web design 3. Next Generation PDF: Concepts 4. Next Generation PDF: Creation 5. Summary 3
  • 4. A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org www.pdfa.org 2017-05-15 Samuel Huylebroeck, Support Engineer iText software 1. Introduction to HTML and CSS 4
  • 5. A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org www.pdfa.org 2017-05-15 Samuel Huylebroeck, Support Engineer iText software 1. Introduction to HTML and CSS • HTML • Hypertext markup language • Structured grouping of content • HTML Tags • Surround content • Provide structural information • Interpreted by Browsers 5 <!DOCTYPE html> <html> <head> <title>Hello World!</title> </head> <body> <p>Hello World!</p> </body> </html>
  • 6. A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org www.pdfa.org 2017-05-15 Samuel Huylebroeck, Support Engineer iText software 1. Introduction to HTML and CSS • CSS • Cascading Style Sheets • Provide presentation information • Layout, colors, fonts, etc. • Inheritance and Classes • Re-use of styles and style-elements • HTML & CSS • Separate content and presentation • Different views for a single HTML file 6 h1{h1{ color: red;color: red; text-decoration: underline;text-decoration: underline; }} p{p{ color: black;color: black; max-width: 70%;max-width: 70%; }} img{img{ width: 50%;width: 50%; margin: 5pt;margin: 5pt; }} .bordered{.bordered{ border: solid 1px black;border: solid 1px black; width: 20%;width: 20%; margin: 2pt;margin: 2pt; }}
  • 7. A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org www.pdfa.org 2017-05-15 Samuel Huylebroeck, Support Engineer iText software 2. Responsive Web Design 7
  • 8. A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org www.pdfa.org 2017-05-15 Samuel Huylebroeck, Support Engineer iText software 2. Responsive Web Design: Intro • HTML • Fixed content • Representation depends on CSS • Responsive Design • Visualization is fluid • Adapt representation to the capabilities of the viewer 8
  • 9. A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org www.pdfa.org 2017-05-15 Samuel Huylebroeck, Support Engineer iText software 2. Responsive Web Design: Why • Diversification of device types • A multitude of different devices that can browse the web are in circulation • Smartphones, laptops, tablets, notebooks, print media, etc. • Devices have varying capabilities • Screen size • Dynamic orientation • from portrait to landscape and back • Users have varying capabilities • various forms of colourblindness, Near-sightedness, etc. 9
  • 10. A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org www.pdfa.org 2017-05-15 Samuel Huylebroeck, Support Engineer iText software 2. Responsive Web Design: How • Media Queries • Browser queries devices on capabilities • Screen width, media-type, features • Render view based on device capabilities • Specialized CSS • Change font, widths, image size, positions etc. based on query results • Mobile screens: larger font-size, vertical flow, etc. • Desktops & larger screens: horizontal placement, smaller font-size, etc. • Print media: hide interactive and animated features 10
  • 11. A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org www.pdfa.org 2017-05-15 Samuel Huylebroeck, Support Engineer iText software 3. Next Generation PDF: Concepts 11
  • 12. A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org www.pdfa.org 2017-05-15 Samuel Huylebroeck, Support Engineer iText software 3. Next Generation PDF: Concepts • Classic PDF: Challenges • Static layout • Representation does not respond to device capabilities 12
  • 13. A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org www.pdfa.org 2017-05-15 Samuel Huylebroeck, Support Engineer iText software 3. Next Generation PDF: Concepts 13
  • 14. A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org www.pdfa.org 2017-05-15 Samuel Huylebroeck, Support Engineer iText software 3. Next Generation PDF: Concepts • Classic PDF: Challenges • Static layout • Representation does not respond to device capabilities • Content structure not required 14
  • 15. A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org www.pdfa.org 2017-05-15 Samuel Huylebroeck, Support Engineer iText software 3. Next Generation PDF: Concepts • Build on PDF 2.0 • Aims to address Classic weaknesses • Static layout • Lack of structure • Inspiration from responsive web design • Multiple ways of presenting content • Select best view based on viewer capabilities 15
  • 16. A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org www.pdfa.org 2017-05-15 Samuel Huylebroeck, Support Engineer iText software • Address static layout by including alternate views in the PDF • Base PDF • Classic PDF • Default view • PDF Alternate(s) • Possible alternate PDF representation of the same content • Selectable based on viewing device or user preferences • HTML alternate • HTML version of the contents in the Base PDF 3. Next Generation PDF: Concepts 16
  • 17. A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org www.pdfa.org 2017-05-15 Samuel Huylebroeck, Support Engineer iText software • Tagged PDF • PDF 1.4 • Adds logical structure to a PDF • Basic layout model • Set of standard structures and attributes 17 3. Next Generation PDF: Concepts
  • 18. A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org www.pdfa.org 2017-05-15 Samuel Huylebroeck, Support Engineer iText software • Tagged PDF as a requirement • Addresses lack of structure • Derived HTML • HTML produced from the Tagged PDF using the HTML- derivation algorithm • Derive CSS from local styles 18 3. Next Generation PDF: Concepts
  • 19. A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org www.pdfa.org 2017-05-15 Samuel Huylebroeck, Support Engineer iText software 4. Next Generation PDF: Creation 19
  • 20. A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org www.pdfa.org 2017-05-15 Samuel Huylebroeck, Support Engineer iText software 4. Next Generation PDF: Creation 20 • PDF from HTML & CSS • HTML is inherently structured • CSS and media queries for alternative views • Challenges • Conversion from HTML and CSS to PDF syntax • Not everything in HTML makes sense in the PDF context (Animations, audio, etc.) • Pagination • Floating elements to static coordinates • Capability for generating multiple views • Tailored CSS for each view • Media query support
  • 21. A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org www.pdfa.org 2017-05-15 Samuel Huylebroeck, Support Engineer iText software 4. Next Generation PDF: Creation • Several HTML to PDF producers exist already • iText pdfHTML • Adobe Acrobat • pdfChip • Print from browser • … • Example using pdfHTML • Creation of base PDF and alternate PDFs • Using tailored CSS and media queries 21
  • 22. A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org www.pdfa.org 2017-05-15 Samuel Huylebroeck, Support Engineer iText software 22 4. Next Generation PDF: Creation • Next Generation PDF • Base content • Alternate views of base content • Requires PDF to be tagged • pdfHTML • HTML 5 + CSS 3  PDF • Configurable (Device description, media queries, etc.) • Customizable (Custom tag and CSS handling) • Based on iText7 • Support for tagging, high degree of control (page-sizes, etc.)
  • 23. A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org www.pdfa.org 2017-05-15 Samuel Huylebroeck, Support Engineer iText software • Input • HTML • CSS • Output for mobile devices • Vertically oriented layout • Large font size • Output for desktops • Horizontally oriented layout • Small font size • Output for tablet-sized devices • Horizontally oriented layout • pdfHTML Tagging • pdfHTML is built on iText7 • iText7 creates tag-structure during PDF Creation 23 4. Next Generation PDF: Creation
  • 24. A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org www.pdfa.org 2017-05-15 Samuel Huylebroeck, Support Engineer iText software 5. Summary 24
  • 25. A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org www.pdfa.org 2017-05-15 Samuel Huylebroeck, Support Engineer iText software 5. Summary • Responsive Webdesign • Adapt visualization to viewing device • Classic PDF Challenges • Static layout • Can be without structure information • Next Generation PDF • More dynamic layout • PDF Alternates • Select best view based on viewer capabilities • Structure information • HTML Alternate • Derived HTML • Next Generation PDF Creation • HTML and CSS as base • Media queries 25
  • 26. A PDF Association Presentation ¡ Š 2017 by PDF Association ¡ www.pdfa.org www.pdfa.org 2017-05-15 Samuel Huylebroeck, Support Engineer iText software 26 PDF Days Europe 2017 Thank you! Any questions? Get in touch: samuel.Huylebroeck@itextpdf.com Web site: www.itextpdf.com Twitter: @iText 26

Notas do Editor

  1. _Samuel Huylebroeck - iText Software_In this talk, we&amp;apos;ll take a look at how web site designers use HTML and CSS to create a web site that looks well on every device. We&amp;apos;ll convert this HTML to PDF, and discover how we can use CSS to create different PDFs, as if the PDF format itself was a special type of device. We&amp;apos;ll play with media queries to render the PDF using different page sizes, using accessibility parameters, and intended use. By doing so, we&amp;apos;ll make the case for a new format that bundles different variations of the same content in one file.
  2. Diagram from from: https://nl.wikipedia.org/wiki/Responsive_webdesign
  3. Tagged PDF intended to be used by tools for text and graphic extraction automatic reflow processing text (indexing, searching, spell-checking) Conversion to other file formats Accessibility support Basic layout model: rules for describing arrangement of structure elements on a page
  4. Pagination: Content stay together Tables: splitting, repeating content, repeating headers Layout in iText7: Renderer framework, layout results Media query support: Link back to responsive design, put emphasis on parallels
  5. CSS: column design