[Poppler-bugs] [Bug 105558] New: [PATCH] Expose more image modes, add option to select mode in renderer

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Mar 16 16:08:26 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=105558

            Bug ID: 105558
           Summary: [PATCH] Expose more image modes, add option to select
                    mode in renderer
           Product: poppler
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: cpp frontend
          Assignee: poppler-bugs at lists.freedesktop.org
          Reporter: hbotondzs at gmail.com

Created attachment 138157
  --> https://bugs.freedesktop.org/attachment.cgi?id=138157&action=edit
The patch file

Hello,

I needed some extra functionality what is available in the pdftoppm utility,
but there were some missing options in the image and the page_renderer classes
and I also added some small bugfixes.

On image I made the following modifications:
  - new poppler::image modes
  - corrected bytes_per_row for poppler::image::rgb24, new image modes added
  - NetPBMWriter & save also handles new modes

On page_renderer:
  - page_renderer_private got image_format and line_mode fields
  - this two new property is exposed in a same way as paper_color and hints
  - default values are the same as before

This is my first patch in this project, so please be gentle with me if I did
something wrong. :)

Thank you, have a nice day!

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20180316/91d76759/attachment.html>


More information about the Poppler-bugs mailing list