[vtkusers] Messed up pdf output from vtkGL2PSExporter

David Lonie david.lonie at kitware.com
Fri Jan 20 09:46:36 EST 2017

I ran the test on the OpenGL2 backend and noticed the artifacts. The
PDF backend for GL2PS is somewhat lackluster -- things like text
alignment tend to come out badly.

The postscript backend, however, is much more robust, and changing the
output from PDF to PS produces a much better rendering. You may have
better luck exporting to postscript and converting afterwards.


On Fri, Jan 20, 2017 at 9:10 AM, David Lonie <david.lonie at kitware.com> wrote:
> Can you provide an example of the rendering and pdf? Also, which VTK
> backend are you using, OpenGL or OpenGL2?
> On Thu, Jan 19, 2017 at 10:06 PM, BBerco <bebe0705 at colorado.edu> wrote:
>> Dear all,
>> I am trying to export a view of a vtkChart to pdf, but the plots I am
>> getting are messed up (the xticks are overlapping with the xaxis and the
>> legend box transparency is off, among other things).
>> I've set up a minimum example based off of the LinePlot tutorial, with a few
>> lines added for the exporter. Running the program and comparing the pdf
>> output to the vtk window clearly shows the issue, at least on my laptop.
>> Any clues?
>> Thanks,
>> Ben
>> ps1: the test file:  LinePlot.cxx
>> <http://vtk.1045678.n5.nabble.com/file/n5741884/LinePlot.cxx>
>> ps2: my locale settings are
>> LANG="en_US.UTF-8"
>> LC_CTYPE="en_US.UTF-8"
>> LC_TIME="en_US.UTF-8"
>> LC_ALL="en_US.UTF-8"
>> --
>> View this message in context: http://vtk.1045678.n5.nabble.com/Messed-up-pdf-output-from-vtkGL2PSExporter-tp5741884.html
>> Sent from the VTK - Users mailing list archive at Nabble.com.
>> _______________________________________________
>> Powered by www.kitware.com
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/vtkusers

More information about the vtkusers mailing list