octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #55486] imread imports PDF(paper) images with


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #55486] imread imports PDF(paper) images with low 75dpi(screen) resolution
Date: Wed, 16 Jan 2019 05:04:59 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

Follow-up Comment #1, bug #55486 (project octave):

The fact that imread can import PDF (vector) files is not documented, so not
officially supported. I'll change the item group into a "feature request" to
add options for importing vector formats.

I am not in favor of adding such capability (and I'll let devs other
developpers give their opinion):
* options like "PixelRegion" will become complicated since the resolution of
the rasterizer engine will come into play.
* it is very easy to do what graphicsmagick does: use ghostscript to first
convert the PDF file to raster format and use whatever option you want.


system ("gs -sDEVICE=png16m -dTextAlphaBits=4 -r300 -o output.png input.pdf")
im = imread ("output.png")


On windows, you'll have to find the ghostcript binary (in the bin folder) and
replace "gs" in this example.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55486>

_______________________________________________
  Message posté via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]