@postscriptum.app/postpdf
TypeScript icon, indicating that this package has built-in type declarations

0.14.1 • Public • Published

postscriptum-postpdf

An utility to process the PDF output of Chromium by adding the bookmarks, croping the pages and setting some metadata.

It is based on PoDoFo, a C++ library to work with the PDF file format.

Postscriptum

Postscriptum is a solution to produce PDF from HTML with the help of CSS Print.

Please refer to https://postscriptum.app for a global picture of the project.

Issues

Please report any issues on the postscriptum-core project.

License

GNU Lesser General Public License

Build

This program must be easily embedded in the postscriptum packaging. The build therefore intends to produce a static binary.

The build is not supported on Windows or macOS but can be achieved with Docker or WSL.

Dependencies

  • build-essentials (gcc, binutils, etc...)
  • cmake
  • mingw-w64-i686 (to cross-build)

On an Ubuntu : apt-get install -y build-essential cmake g++-mingw-w64-i686 binutils-mingw-w64-i686

There is no need to install PoDoFo and his dependencies. The CMake build handles them.

Instructions

  • Linux and macOS : scripts/build.sh
  • Windows (mingw32 crossbuild) : scripts/build.sh win32 cmake/Toolchain-i686-w64-mingw32.cmake

The binaries are produced in the build directory.

With Docker

  • Linux : docker run --rm -v "$PWD":/work multiarch/crossbuild /work/scripts/build.sh
  • Windows : docker run --rm -v "$PWD":/work -e CROSS_TRIPLE=i686-w64-mingw32 multiarch/crossbuild /work/scripts/build.sh win32 /work/cmake/Toolchain-i686-w64-mingw32.cmake
  • macOS : docker run --rm -v "$PWD":/work -e CROSS_TRIPLE=x86_64-apple-darwin multiarch/crossbuild /work/scripts/build.sh darwin /work/cmake/Toolchain-x86_64-apple-darwin14.cmake

On Windows, replace $PWD by %CD%.

Readme

Keywords

none

Package Sidebar

Install

npm i @postscriptum.app/postpdf

Weekly Downloads

2

Version

0.14.1

License

MIT

Unpacked Size

7.53 MB

Total Files

14

Last publish

Collaborators

  • rivron