[gs-bugs] [Bug 692275] New: Support rendering a part (subrectangle) of a document
bugzilla-daemon at ghostscript.com
bugzilla-daemon at ghostscript.com
Sun Jun 12 12:19:22 UTC 2011
http://bugs.ghostscript.com/show_bug.cgi?id=692275
Summary: Support rendering a part (subrectangle) of a document
Product: Ghostscript
Version: 8.71
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P4
Component: General
AssignedTo: support at artifex.com
ReportedBy: whiskey at raubtierbaendiger.de
QAContact: gs-bugs at ghostscript.com
Estimated Hours: 0.0
For my postscript-viewer I need to render part (the visible rectangle) of a
page
into a .png-file.
Zooming works fine, but so far I can only render the whole page.
Rendering only the interesting rectangle would speed things up
(maybe not the rendering but my image loading code).
Is that already possible (I spent hours searching the docs)?
Could that possibility be added?
Note:
When rendering to the x11 device, one can communicate the "bounding box"(?)
vie X11-atoms and thus restrict the rendered part.
Using png12m as output device this does not work. (Moreover a
commandline switch would be way more convenient than having to code X11 calls.)
Short version:
Can
gs -dSAFER -dQUIET -sDEVICE=png16m -sOutputFile=/tmp/x.png
-r96x96 -dTextAlphaBits=4 -dGraphicsAlphaBits=4
-dNOPLATFONTS -dNOPAUSE -dBATCH x.ps
be augmented by some options (or environment variable) such that
/tmp/x.png contains not the whole page but only a subrectangle?
I am thinking of something like a (new?) option:
-sBBOX=100,100,400,500
that allows to specify the rectangle that should be contained
in the output file.
Best regards
Christoph
--
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the gs-bugs
mailing list