17
Transforming PDF int Matt Kuznicki, CTO

Transforming PDF into HTML

Embed Size (px)

Citation preview

Page 1: Transforming PDF into HTML

Transforming PDF into HTML Matt Kuznicki, CTO

Page 2: Transforming PDF into HTML

Agenda

1. Challenges of PDF conversion2. Making convertible PDF from the start3. About all those other PDFs out there….4. Features of Datalogics PDF Alchemist5. Summary and concluding thoughts

Page 3: Transforming PDF into HTML

A bit about me

CTO at Datalogics Worked with PDF for over 15 years Board member of PDF Association Active participant in the PDF

standards community

Page 4: Transforming PDF into HTML

Challenges of PDF conversion PDF was designed to convey an exact

visual representation of information to humans

PDF’s origins did not account for storing and retrieving machine-understandable information

PDF is page and position based, lacks the notion of text flow and grouping*

Many different PDFs in the wild – some easy to interpret, some very complex

Page 5: Transforming PDF into HTML

PDF designed to convey exact visual representation

Reliable visual representation, but many potential ways to make something that looks a certain way

Capability to tie semantic information to content came later on to PDF Use is increasing but still

far from the majority of content being produced

Most PDF generators still prefer smaller files to PDF files that are easier to repurpose

Page 6: Transforming PDF into HTML

PDF designed for human consumption

At the time PDF was conceived as a PostScript replacement, reliable rendering for human readers was an important issue… Focus was on retrieving the information needed to display and print

pages for peoples’ use Affordances for machine “reading” were bolt-ons to the format Community has made great strides in allowing for machine interpretation,

but proper use requires expertise in the domain Structure and semantics are optional – usage is still rare

This is NOT a PDF specific issue

Page 7: Transforming PDF into HTML

Like a TIFF or raster image, marks on a PDF page are precisely positioned and usually come in small discrete pieces

Humans automatically see a page flow that is not always present in the PDF syntax

Contents of a PDF page can be specified in an order very different from how we read

Words, images, other elements on a page may have the marks that constitute spread far throughout the page marking stream

PDF is page and position based

Page 8: Transforming PDF into HTML

Creating Tagged PDF means you embed the information for repurposing and reflow directly into the PDF when it’s created – at the right time!

Easy to convert Tagged PDF into other formats

But, not all Tagged PDF is the same, and not generators emit useful Tagged PDF!

Avoid all this trouble at the start – if you can!

Page 9: Transforming PDF into HTML

But how about all those other PDFs out there?

Existing PDFs aren’t going to magically gain structure semantics

Existing tools and workflows may not be upgradable in the near future – or at all

Not all files converted to PDF contain enough information for structure semantics in the first place

Page 10: Transforming PDF into HTML

Is OCR the only way to handle these? No!

OCR is not always reliable in converting pictures of text back into actual text flows

Rasterizing PDFs to scan and turn back into non-raster form introduces multiple chances for errors and unexpected results

Page 11: Transforming PDF into HTML

Conversion of PDF to HTML relies upon:

Seeing pages in a way like a human reads them

Figuring our the logical structure of the pages

Putting text back together into text flows

Putting all these elements out in the correct order

Page 12: Transforming PDF into HTML

PDF AlchemistDatalogics PDF to HTML conversion technology

Page 13: Transforming PDF into HTML

What does PDF Alchemist offer? Works on untagged PDFs – handles existing PDFs, does not

require workflow changes or regenerating/reconstructing source PDFs

Turns placed words in PDFs back into text flows – reflowable text

Re-creates tables and lists from page content Removes pagination artifacts such as page #s and running

headers Converts PDF into single-page HTML5 + CSS or into EPUB

packages Converts PDF forms into fixed-layout HTML forms for use in

mobile environments

Page 14: Transforming PDF into HTML

Demonstrations

Conversion of a PDF file into an HTML file

Conversion of a PDF form into an HTML form

Page 15: Transforming PDF into HTML

• Available as a command line tool for server and workflow integration

• Or as a simple “C” API for integration into programs

Using PDF Alchemist

Page 16: Transforming PDF into HTML

Summary Most PDFs are and will continue to be made without

regard to repurposing

Reconstructing the content and flow of PDF relies upon advanced logic and mimicry of how humans read pages

PDF Alchemist offers this logic in an easy to use software package

Page 17: Transforming PDF into HTML

Any Questions?Matt Kuznicki

Chief Technical [email protected]: mattkuznicki

Datalogics Inc.www.datalogics.com

Twitter: @DatalogicsInc