Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #3579

Re: Supress page group (/Group) from pdf output

From Ethan A Merritt <EAMerritt@gmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Supress page group (/Group) from pdf output
Date 2017-03-17 09:19 -0700
Organization A noiseless patient Spider
Message-ID <oah258$khp$1@dont-email.me> (permalink)
References <b1bf2d07-5643-45dd-9ca7-8df7d7229162@googlegroups.com>

Show all headers | View raw


raonath@gmail.com wrote:

> Occasionally I use gnuplot to produce pdf files for inclusion into
> pdftex. Recently, I found out (from a pdftex warning) that gnuplot
> puts a page group in the pdfs it produces. This could potentially a
> problem if more than one such pdf is included in the same page of the
> final pdf file. Is there a way to get gnuplot to produce includable
> pdf files? [I suppose that I could generate eps or metapost, but that
> seems too roundabout.]
> 
> The only place where the /Group directive appears seems to be here:
> /Group <<
>       /Type /Group
>       /S /Transparency
>       /CS /DeviceRGB
>    >>
> Are there any gnuplot settings that would make these unnecessary?

Inclusion of gnuplot pdf output  in tex/latex documents has always
worked for me, barring some issues with UTF-8 character encoding.
One thing you need to realize is that gnuplot does not produce
line-by-line pdf output.  Instead it requests conversion of the 
entire internal graphics representation into pdf by calling an
external high-level library.  E.g. the entire operation of saving
the current plot as a pdf file from gnuplot's wxt terminal boils down
to a single call:

 surface = cairo_pdf_surface_create(
                        fullpathFilename.mb_str(wxConvUTF8),
                        panel->plot.device_xmax, panel->plot.device_ymax);

You might find relevant information in the documentation for the
relevant libraries (libcairo for output from gnuplot's wxt or
pdfcairo terminals,  Qt for output from the qt terminal).

	Ethan


> 
> Thanks in advance
> Nath Rao

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Find similar


Thread

Supress page group (/Group) from pdf output raonath@gmail.com - 2017-03-17 07:48 -0700
  Re: Supress page group (/Group) from pdf output Ethan A Merritt <EAMerritt@gmail.com> - 2017-03-17 09:19 -0700

csiph-web