Code Monkey home page Code Monkey logo

pdfsplash's Introduction

PDFSplash

Tool for generate PDF´s in easy way (Table of Contents, Split them, etc)

NOTE: Using Python 3.x for this tool

REQUIREMENTS

  • OS
  • RE
  • SYS
  • JSON
  • REQUEST
  • WEASYPRINT
  • PyPDF2
  • XML.DOM
  • ElementTree
  • URLLIB

Tutorial for general purpose

A guide step by step

  1. Install all dependencies to ensure the correctly function of the software.
  2. Instance the class and using it!.

EXAMPLES OF USING

#generate index from XML FILE using his PATH
tableOfContent, filenameOFfile = generateIndexListfromXML(document_path_name_XML, document_path_name_PDF, element_of_yourXML)


# You can generate TOC based in XML file and them you can merge with PDF file

#generate an HTML file with the INDEX of PDF
convertHTMLwithTOC(tableOfContent, filenameOFfile, title_of_document, 1)

#convert HTML to PDF
filename_PDF_withTOC = convertToPdf(filenameOFfile)
split_names_part1, split_names_part2 = PdfSplitToTwo(document_path_name_PDF, textToFindandSplit)

#merge PDFS using the TOC result and split one PDF
files = (filename_PDF_withTOC, split_names_part1)
pdfMerge('FINAL_DOCUMENT_WITH-TOC.pdf', files)

pdfsplash's People

Contributors

warkanlock avatar

Stargazers

 avatar  avatar

Watchers

 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.