Bug 32027 - patch to add tiff support to pdftoppm
Summary: patch to add tiff support to pdftoppm
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: splash backend (show other bugs)
Version: unspecified
Hardware: Other All
: medium enhancement
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-01 13:18 UTC by William Bader
Modified: 2010-12-29 06:48 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
patch to add tiff support to pdftoppm (17.71 KB, patch)
2010-12-01 13:18 UTC, William Bader
Details | Splinter Review
New version of tiff patch, against current git source, without outputfilename (17.24 KB, patch)
2010-12-28 06:31 UTC, William Bader
Details | Splinter Review

Description William Bader 2010-12-01 13:18:27 UTC
Created attachment 40717 [details] [review]
patch to add tiff support to pdftoppm

This patch adds TIFF support to pdftoppm.  It adds a -tiff command line parameter to generate a TIFF file and an optional -tiffcompression parameter to specify the TIFF compression type.
The patch creates a TiffWriter subclass of ImgWriter that calls libtiff.
configure.ac checks for the presence of libtiff and has a --disable-libtiff flag to disable TIFF support.
After applying these patches, you need to run autogen.sh and then a normal make will work.
Comment 1 Albert Astals Cid 2010-12-28 04:14:41 UTC
setOutputFileName is defined but never used?
Comment 2 William Bader 2010-12-28 05:05:09 UTC
Sorry about that.  Thanks for looking at the patch.  You are correct that I never used it.  I was going to set the file name that way, but I ended up setting it in init().
Comment 3 Albert Astals Cid 2010-12-28 05:43:19 UTC
Can you please attach a patch without that unused function and based on current git master?
Comment 4 William Bader 2010-12-28 06:31:42 UTC
Created attachment 41487 [details] [review]
New version of tiff patch, against current git source, without outputfilename

I made a new patch against the current git source.
I removed the unused setOutputFileName() function, and I removed the outputFileName variable since it is always NULL.
Comment 5 Albert Astals Cid 2010-12-29 06:48:07 UTC
Will be in poppler >= 0.17.0


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.