Code Monkey home page Code Monkey logo

xpdf-tiff-patches's Introduction

xpdf-tiff-patches

Patches and Windows binaries for the Xpdf toolkit command line utilities (upstream release version 4.05) to enable TIFF output and more, see: https://www.xpdfreader.com

Patch pdftotiff-xpdf-4.05.patch adds alpha channel export capability for pages rendered to bitmap:

  • pdftoppm has -alpha option which exports the mask (only) as an 8-bit PGM
  • new tool "pdftotiff" allows export of pages as TIFF files (requires an available libtiff to compile)
  • pdftotiff also has -alpha option allowing generation of image with mask (to the same file)
  • pdftotiff and pdftoppm have new -cmyk option allowing generation of color separated TIFF files (only if configured with -DSPLASH_CMYK=ON to cmake)
  • TIFF output files are compressed by default with LZW (or Huffman-RLE for -mono); this can be disabled with option -no-compression

Patch pdfimages-xpdf-4.05.patch allows export of embedded images in more formats (PNG or TIFF):

  • pdfimages now has -png option to export as PNG files as monochrome, grayscale or color
  • pdfimages now also has -tiff option (when libtiff is available) to export as TIFF files in monochrome, grayscale, color or separated (as they are in the source PDF)
  • pdfimages can now correctly export indexed color images as RGB (either PNG or TIFF)
  • masks are written to separate image files, as either a monochrome or grayscale, PNG or TIFF (this is not ideal, but I'm unsure of how to resolve this)
  • specifying -j (optionally in addition to either -raw, -png or -tiff) exports embedded JPEG images as .jpg files with other images in the specified format (PBM if not specified)

See the latest release for 32 and 64-bit Windows binaries compiled with Visual Studio 2022 (C++ compiler version 19.38.33134). To run these executables, you may need to install the Windows C++ redist (Visual Studio redistributable libraries), which are linked from this page:

https://docs.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170

xpdf-tiff-patches's People

Contributors

cpp-tutor avatar

Stargazers

 avatar  avatar

Watchers

 avatar

xpdf-tiff-patches's Issues

MS defender again

MS Defender is deleting the 4.05 exes so was trying to run XPDF viewer and boom! there it was gone, (This program is dangerous and executes commands from an attacker.) not strictly your issue
However the same fate befalls all 3 of your exes after download (if they are allowed down in the first place)

So I submitted yours for analysis to MS before I lost them (unsure If I can submit the main viewer, I doubt it will install !)

It May be worth you submitting your build for flagging as false positive as Author.

Highlight Default Settings

It would be nice if default settings were clearer in the help. Something like first option in all caps or enclose in brackets.

No -tiff option for pdfimages

This is a great patch, however, how do I make available the libtiff tools as advised in the description ‹[...] pdfimages now also has -tiff option (when libtiff is available) [...]›?

Attempting to run pdfimages throws VCruntime dependency error

Understandable but undesirable

---------------------------
pdfimages.exe - System Error
---------------------------
The code execution cannot proceed because VCRUNTIME140.dll was not found. Reinstalling the program may fix this problem. 
---------------------------
OK   
---------------------------

For a windows 11 novice there is no explanation that the runtime redist is obtainable cleanly from Microsoft https://www.microsoft.com/en-us/download/details.aspx?id=52685 rather than some "fix my PC" cowboys.

image

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.