Bug 66135

Summary: pdftohtml - Colour and precision fixes
Product: poppler Reporter: Ryan Fox <ryan.fox>
Component: utilsAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Add the ability to create a string from a double.
Fix the scale calculation for normalizing rotation matrices.
Add support for stroke and fill colours in pdftohtml, as well as transparency in the colour.
Change some int values to double where the values are coming from doubles upstream.
Add support for stroke and fill colours in pdftohtml, as well as transparency in the colour.

Description Ryan Fox 2013-06-24 20:30:18 UTC
I've had to make a few changes to the pdftohtml code to suit my purposes. These include:

  * correcting the rotation matrix normalization
  * including the transparency value in colours
  * outputting both stroke and fill colours
  * undoing the truncation of double values into integer values

The attached patches are based on the code from the 0.23.2 release.
Comment 1 Ryan Fox 2013-06-24 20:30:46 UTC
Created attachment 81364 [details] [review]
Add the ability to create a string from a double.
Comment 2 Ryan Fox 2013-06-24 20:31:04 UTC
Created attachment 81365 [details] [review]
Fix the scale calculation for normalizing rotation matrices.
Comment 3 Ryan Fox 2013-06-24 20:31:23 UTC
Created attachment 81366 [details]
Add support for stroke and fill colours in pdftohtml, as well as transparency in the colour.
Comment 4 Ryan Fox 2013-06-24 20:32:21 UTC
Created attachment 81367 [details] [review]
Change some int values to double where the values are coming from doubles upstream.
Comment 5 Ryan Fox 2013-06-24 20:33:46 UTC
Created attachment 81368 [details] [review]
Add support for stroke and fill colours in pdftohtml, as well as transparency in the colour.
Comment 6 Albert Astals Cid 2013-06-30 21:50:06 UTC
Hi Ryan, thanks a lot for the aptches, could you please attach some html files where we can see the improvements provided by these patches?
Comment 7 Albert Astals Cid 2014-02-18 23:30:45 UTC
Reporter did not follow up

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.