View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002887ParaView(No Category)public2006-02-15 09:122009-12-10 20:28
ReporterChristian Becker 
Assigned ToBerk Geveci 
StatusclosedResolutionwon't fix 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0002887: "Real" Postscript output
DescriptionFor using the output within documents it would
be very nice to have a real postscript vector output
without bitmaps.
TagsNo tags attached.
Topic Name
Attached Files? file icon ParaView3.3.0-cvs2008-07-23-patch-for-vectorgraphics-ps-export [^] (5,036 bytes) 2008-07-23 08:22


Sven Buijssen (reporter)
2008-07-23 08:22

On 10/Aug/2007 04:13pm I posted a patch on the paraview mailing list that adds the possibility to export screenshots as vector graphics in the file formats PS, EPS and SVG using the library GL2PS (as opposed to vtkPostScriptWriter which exports bitmap postscript).

The relevant VTK data structures have changed a least three times since, so I needed to update the patch a couple of times. Applying the attached patch to top of CVS trunk adds the feature the reporter asked for two years ago. According to feedback I received in response to my patch posting (feedback on the mailing list, but mainly via private mails) there are at least a few other groups besides mine and the reporter's one that are highly interested in this additional export filter.
It would be great if it could find its way into CVS trunk.

Shortcomings of the patch:

(1) The macro
- set in the patched file ParaViewCommon.cmake - is not propagated to Qt/Core/pqRenderViewBase.cxx. As I'm not familiar with CMake syntax, I hardcoded the preprocessor macro VTK_USE_GL2PS there. For someone familiar with CMake, it probably takes only a few minutes to set up things correctly.

(2) Errors thrown by GL2PS are not catched.

(3) GL2PS seems to be incapable to handle objects with the "Interpolate Colors" display property. Those objects are exported with white colors. The patch does not automagically disable this property before export (and restore it afterwards). So far, a user needs to untick this property before export where appropriate in the Object Inspector.

Apparent shortcomings of GL2PS this patch does not compensate for:

(1) GL2PS seems to be incapable to handle TextSource objects. Instead of the text itself, a white-colored outline box of the text is rendered.

(2) Attempts to export a Mandelbrot Source result in a segmentation fault.
Berk Geveci (administrator)
2009-12-10 20:28

I agree that this would be nice but gl2ps supports only a small subset of OpenGL and will probably not be a good general solution.

 Issue History
Date Modified Username Field Change
2008-07-23 08:22 Sven Buijssen Note Added: 0012808
2008-07-23 08:22 Sven Buijssen File Added: ParaView3.3.0-cvs2008-07-23-patch-for-vectorgraphics-ps-export
2009-12-09 14:49 Berk Geveci Project @3@ => ParaView
2009-12-10 20:28 Berk Geveci Note Added: 0018809
2009-12-10 20:28 Berk Geveci Status tabled => closed
2009-12-10 20:28 Berk Geveci Resolution open => won't fix
2011-06-16 13:09 Zack Galbreath Category => (No Category)

Copyright © 2000 - 2018 MantisBT Team