GithubHelp home page GithubHelp logo

normex / pdf-derivation Goto Github PK

View Code? Open in Web Editor NEW
9.0 8.0 2.0 32.06 MB

Deriving HTML from PDF

License: MIT License

C++ 63.29% C 36.22% CMake 0.49%
html pdf pdf-converter pdf-files derivation-algorithm

pdf-derivation's Introduction

Deriving HTML from PDF

Implementation of an algorithm that converts well-tagged pdf files into HTML

Since 2016 we have been actively participating in PDF Association Technical Working Group with the aim to address needs of industry for changing the way PDF files are consumed. The main concern was whether or not the traditional fixed-layout pdf contains enough information to be safely and unambiguously interpreted as html - therefore responsive and reusable in different environments.

The output of the work is the Deriving HTML from PDF - document that describes how the process of conversion could be done. Version 1.0 of the publication was released by PDF Association in June 2019.

We presented about the idea at the PDF Days Europe 2017 in Berlin and Electronic Document Conference 2019 in Seattle

As a part of the work we came up with referential set of pdf documents and implementation. These should provide enough insights into the whole concept.

We also publishing articles about the concept like these [1 2] and based on real world implementations we are working on future versions of the algorithm.

Download

This repository contains a commandline tool and GUI application. You can find latest version through release link where you want to download bin.zip file.

Follow direct link to the latest version of executables. https://github.com/Normex/PDF-Derivation/releases/latest/download/bin.zip

We currently only build 64 bit windows version, download the zip file and unpack to your prefered location

Command line application

To run commandline application just type:

derive.exe c:\temp\tagged.pdf c:\temp\output

first parameter is pdf file you want to derive into html second parameter is existing output folder.

GUI application

We utilise chromium to show result html alongside with original pdf. The use of the gui app is pretty straightforward.

run PDFDerivation_app.exe application. From menu open pdf file and check html tab for result. HTML file is stored in application subfolder.

Sample files

Even though the derivation algorithm is designed to work properly for all tagged pdf files, it is expected that the best result in terms of visual accuracy is achieved with pdf files that are tagged for this purpose. In the pdf folder you can find set of examples (manually crafted pdf files) that show how specific structure elements, attributes, associated files are used during the derivation and how the author can turn static pdfs into a dynamic html.

Sources

Currently we only provide project files for Windows, but the code is platform independent and in future we expect to add support for mac and linux.

Feedback

Feel free to submit bugs, problematic files, comments, questions, suggestions by creating new issue in Issues section or e-mail us

Licensing

All assets and code are provided under the MIT License (we use free version of PDFix SDK)

Should you have any questions or requests contact us: e-mail us

pdf-derivation's People

Contributors

romantoda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.