Need advice about which tool to choose?Ask the StackShare community!

OpenPDF

3
21
+ 1
0
wkhtmltopdf

52
94
+ 1
0
Add tool

OpenPDF vs wkhtmltopdf: What are the differences?

OpenPDF: A free Java library for creating and editing PDF files. OpenPDF is a free Java library for creating and editing PDF files with a LGPL and MPL open source license. OpenPDF is based on a fork of iText; wkhtmltopdf: Convert HTML to PDF using Webkit (QtWebKit). wkhtmltopdf and wkhtmltoimage are command line tools to render HTML into PDF and various image formats using the QT Webkit rendering engine. These run entirely "headless" and do not require a display or display service.

OpenPDF and wkhtmltopdf can be primarily classified as "File Conversion" tools.

OpenPDF and wkhtmltopdf are both open source tools. wkhtmltopdf with 8.39K GitHub stars and 1.17K forks on GitHub appears to be more popular than OpenPDF with 1.12K GitHub stars and 156 GitHub forks.

Advice on OpenPDF and wkhtmltopdf
Needs advice
on
PDF.jsPDF.jsOpenPDFOpenPDF
and
GhostscriptGhostscript

Users are uploading huge PDF files of more than 100MB on our platform. We are creating several tools to manage those files, but keeping the raw file will eat up space, as we are handling several of them. After upload, they will be mainly keep stored for future use.

I am looking for a tool to compress and optimize those PDFs, like a library or an external API that can process that for us.

Thanks

See more
Replies (2)
Andres Montalban
Recommends
GhostscriptGhostscript

I have been using Ghostscript and Python to get JPEG images from PDF files and that way we have reduced PDF size. But if your average is 100MB then probably those are hi-res images and not sure if your users will accept a quality reduction.

See more
Recommends
BunnyCDNBunnyCDN

You can store raw files on a cdn service like bunnyCdn. If they want to work with the raw files, you can get it from the cdn service. Compressing is not a persistent solution for space problem. Also it's more safe way, because cdn providers copy your files more than one servers..

Modern cdn solutions have ftp / ssh support so you can easily send files to them...

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More

What is OpenPDF?

OpenPDF is a free Java library for creating and editing PDF files with a LGPL and MPL open source license. OpenPDF is based on a fork of iText.

What is wkhtmltopdf?

wkhtmltopdf and wkhtmltoimage are command line tools to render HTML into PDF and various image formats using the QT Webkit rendering engine. These run entirely "headless" and do not require a display or display service.

Need advice about which tool to choose?Ask the StackShare community!

What companies use OpenPDF?
What companies use wkhtmltopdf?
See which teams inside your own company are using OpenPDF or wkhtmltopdf.
Sign up for StackShare EnterpriseLearn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with OpenPDF?
What tools integrate with wkhtmltopdf?

Blog Posts

What are some alternatives to OpenPDF and wkhtmltopdf?
Pandoc
It is a free and open-source document converter, widely used as a writing tool and as a basis for publishing workflows. It converts files from one markup format into another. It can convert documents in (several dialects of) Markdown, reStructuredText, textile, HTML, DocBook, LaTeX, MediaWiki markup, TWiki and many more.
CloudConvert
Convert anything to anything - more than 200 different audio, video, document, ebook, archive, image, spreadsheet and presentation formats supported.
DocRaptor
DocRaptor makes it easy to convert HTML to PDF and XLS format. Choose your document format, select configuration options and make an HTTP POST request to our server. DocRaptor returns your file in a matter of seconds. We provide extensive documentation and examples to get you started, and our API makes it easy to use DocRaptor to generate PDF and Excel files in your own web applications.
Ghostscript
It is a suite of software based on an interpreter for Adobe Systems' PostScript and PDF page description languages. Its main purposes are the rasterization or rendering of such page description language files.
WeasyPrint
It is a visual rendering engine for HTML and CSS that can export to PDF. It aims to support web standards for printing. It is free software made available under a BSD license.
See all alternatives