PDFify
GitHub Readme.md
Create beautiful PDF documents using familiar HTML, CSS and JavaScript.This open source project is direct replacement for services likeHyPDF and DocRaptor.
Automatic text recognition (OCR) created searchable and paged PDF out your images and scans. Use your scanner or camera to add new pages to PDF documents. Drag emails or webpages on PDFify to create paged PDF files which are perfect for app store invoices. Trusted Mac download PDFify 3.3.2. Virus-free and 100% clean download. Get PDFify alternative downloads. Receipts-app In fact, PDFify's features are components that are also used in receipts. Due to the voluntarily provided anonymous analysis data of Receipts, it could be recognized that scanned documents make up a considerable part of the processed documents. Likewise the text recognition is taken up extensively. PDFify - pdfify.app. Reliable text recognition and PDF Tool. Briefing - brie.fi/ng. Anonymous fully encrypted video group chat. Even more links to each app. Recent Posts April 16, 2021 Video Chat Briefing - More features; April 15, 2021 LanguageTool; September 2, 2020 Why I.
This service can be used to generate PDF invoices, legal documents, etc.
Requirements:
Setup
Deploy PDFify server to Heroku, as a Docker container or to your ownserver. Locally you can just start a development server withnpm start
.
More on Deployment section.
Post request to server
This can be done with ourNode.js client library:
or you can use query PDFify HTTP API with your own favourite language.
Project configuration is done through environment variables.
NameDefault valueDescriptionPORT3000PDFify server portHTML_SIZE_LIMIT2mbControls the maximum request body size e.g. 100kB, 2mb.WORKER_COUNT2Number of workers to maintain. One or two per CPU core is recommended.WORKER_DEATH20Number of items to process before restarting a worker to prevent phantomjs memory leaks.PAGE_DEATH8000Number of milliseconds to wait before before requeuing an item.This project was developed under assumption it will be deployed inside theDocker container or in PaaS like Heroku. But you can still deploy it easilyin more traditional environments.
Heroku
Deployment to heroku is easiest and the most straightforward deployment option.
You can do that by using Heroku Button below:
Docker
There is Dockerfile in this repository. You can pull image fromDocker Hub withdocker pull juliusj/pdfify
.
Your own server
You will start PDFify server with npm start
command. It is alias tonode ./node_modules/.bin/forever -m 5 server.js
API is very simple. There is only one endpoint /convert
whichaccepts GET and POST requests.
POST /convert
Example:
Pdfy-p24nmu-e
GET /convert
This method is sometimes useful for testing purposes. Parameters are passedthrough the query string. Field names are exactly the same except for paperMargin:
Example:
Response
On successful HTML -> PDF request server always respondswith status code 200
. On error it will be 400
.
If format
is set to binary
response will return PDF file in binary.
If format
is set to base64
PDF will be returned encoded in base64,for example:
Error responses are encoded in JSON, for example:
Parameters
format
PDF output format. Can be binary
or base64
. Defaultis binary
.
orientation
PDF document orientation. Can be 'portrait'
or 'landscape'
. Default is 'portrait'
.
zoomFactor
You will often adjust this parameter to make your HTML design fit betterinto the PDF document. The sweet spot is between 0.7
and 0.8
.
Zoom factor does not work when javascript is disabled. Default zoom is 1
.
Additionally it can be set via css:
html
HTML to load inside PhantomJs headless browser.
url
Opens the url and loads it to the page.
paperSize
Supported formats are:'A3', 'A4', 'A5', 'Legal', 'Letter', 'Tabloid'
.
paperWidth and paperHeight
Supported dimension units are:'mm', 'cm', 'in', 'px'
. No unit means 'px'
.
Supply only paperSize
or paperWidth
andpaperHeight
only.
paperMargin
Borders around PDF page. Supported dimension units are:'mm', 'cm', 'in', 'px'
. No unit means 'px'
.
For example:
javascriptEnabled
Defines whether to execute the javascript code in the page or not.Defaults to true
.
loadImages
Defines whether to load the inlined images or not. Defaultsto true
.
resourceTimeout
Defines the timeout after which any resource requested will stoptrying and proceed with other parts of the page.
Pdf Candy
Default is 8000 (in milliseconds).
userAgent
Defines PhantomJs user agent. This could be useful, because some websitesdoes features detection based on browser user agent.
Default user agent is:
Pdfy-p12nmu
PDFify uses fast text recognition (OCR) to create searchable PDFs with More than 100 languages available!
With PDFify you can compose PDFs from a wide range of sources including: existing PDFs; images; emails; webpages; scans; your iPhone's built in document scanner (Continuity Camera).
Drag or paste anything on the window to append it to the current document and automatically apply text recognition if required.
Squeeze to reduce the size of your PDF files and saves space on your drives.
Pdflyer
Emails and webpages get converted to paged PDF files which is great for archiving invoices you get by mail like from AppStore.
Pdfyueduqi1
Full support for all desktop scanners.