Skip to content

zotero/cross-xpdf

Repository files navigation

cross-xpdf compiles xpdf PDF tools for macOS (x64), Windows (x86, x64), Linux (x86, x64).

This is only intended to be used for pdfinfo and pdftotext.

pdfinfo

pdfinfo is modified to output to a specified file.

pdftotext

pdftotext is modified to output a preprocessed JSON that contains rich and structured information about the PDF and the text extracted from it:

  • PDF metadata
  • Page dimensions
  • Page count
  • Word position
  • Font size
  • Space after word
  • Baseline
  • Rotation
  • Bold
  • Italic
  • Color
  • Font

Also, a command line switch is added to customize the path to poppler-data directory.

Build

PDF tools are build inside the Docker container.

macOS 10.11 SDK is needed. Place MacOSX10.11.sdk.tar.xz to the current directory. Extract it from Xcode 7.3.

git clone https://github.com/zotero/cross-xpdf
cd cross-xpdf
mv path_to_sdk/MacOSX10.11.sdk.tar.xz ./
./build.sh

./build/pdftools.tar.gz contains the built binaries and poppler-data directory.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages