Re: Problem with options -antialias/-noantialias

View: New views
2 Messages — Rating Filter:   Alert me  

Parent Message unknown Re: Problem with options -antialias/-noantialias

by Markus Steinborn-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Roland,
Hi everybody,

@Roland: Thanks for reporting this issue, there a bug somewhere, as the
postscript file is displayed different using different viewers.

@everybody:
what do you think, is the following a bug in the postscript-file, the
created PDF file or a bug in gv?

BTW: The last postscript file is clipped with gsview, so where might be
a problem with that file.

And yes, it is reproducible with GNU gv 3.6.6 and GNU Ghostscript 8.62.0.


Roland Schilling wrote:

> Hi,
>
> I have a problem with the '-noantialias'/'-antialias' options
> and already tried to get some help from 'comp.lang.postscript',
> but to no avail.  Hence, I repeat here what I wrote to
> 'comp.lang.postscript':
>
> I generate PS files of various sizes and would like them to
> properly convert into PDF using ps2pdf14 .  But I had a problem
> with formats larger then A4:  The generated PDF files only had
> A4 format and showed the lower left corner of the PS file.
> See the following example of an A3 plot in landscape:
>
> %!PS-Adobe-3.0
> %%BoundingBox: 0 0 843 1192
> %%Orientation: Landscape
> %%Title: test_A3_L
> %%EndComments
> 843. 0. translate 90. rotate
> 2.83465 dup scale
> 1. setlinewidth
> newpath 50. 30. 320. 210. rectstroke
> showpage
> %%EOF
>
> To cure this problem I added the following 3 lines after
> %%EndComments (see attached file 'test_A3L.ps'):
>
> %%BeginSetup
> <</PageSize[ 843 1192 ]>>setpagedevice
> %%EndSetup
>
> This works fine and yields a correct PDF file.  But when
> viewing the PS file with GV the full-size picture is only
> shown if the option '-antialias' is active; with '-noantialias'
> it is clipped at a width of 843 points.  Another observation
> is that, when viewing a multipage document (generated in the
> kind shown above) with '-antialias' active, the part right of
> 843 points shows an overlap of the new and the previous page(s).
> The can then be cured by switching 'antialias' off and on again.
> What's wrong here?  Am I doing something wrong or am I missing
> something, or is it a bug in GV?
>
> Thanks in advance!
>
> Roland
>
>
> +----------------------------------------------------------------------+
> |  Roland Schilling                      Home-Office: +49(89)32929-670 |
> |  Max-Planck-Institut für Gravitationsphysik                          |
> |  -- Albert-Einstein-Institut --                                      |
> |  D-85748 Garching                           E-mail:   ros@... |
> |  Germany                           http://www.geo600.uni-hannover.de |
> +----------------------------------------------------------------------+
> Please avoid sending me Word or PowerPoint attachments.
> See http://www.gnu.org/philosophy/no-word-attachments.html
>  

Greetungs from Germany

Markus Steinborn
GNU gv maintainer





Re: Problem with options -antialias/-noantialias

by Markus Steinborn-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Roland,
Hi everybody,

@Roland: Thanks for reporting this issue, there a bug somewhere, as the
postscript file is displayed different using different viewers.

@everybody:
what do you think, is the following a bug in the postscript-file, the
created PDF file or a bug in gv?

BTW: The last postscript file is clipped with gsview, so where might be
a problem with that file.

And yes, it is reproducible with GNU gv 3.6.6 and GNU Ghostscript 8.62.0.


Roland Schilling wrote:

> Hi,
>
> I have a problem with the '-noantialias'/'-antialias' options
> and already tried to get some help from 'comp.lang.postscript',
> but to no avail.  Hence, I repeat here what I wrote to
> 'comp.lang.postscript':
>
> I generate PS files of various sizes and would like them to
> properly convert into PDF using ps2pdf14 .  But I had a problem
> with formats larger then A4:  The generated PDF files only had
> A4 format and showed the lower left corner of the PS file.
> See the following example of an A3 plot in landscape:
>
> %!PS-Adobe-3.0
> %%BoundingBox: 0 0 843 1192
> %%Orientation: Landscape
> %%Title: test_A3_L
> %%EndComments
> 843. 0. translate 90. rotate
> 2.83465 dup scale
> 1. setlinewidth
> newpath 50. 30. 320. 210. rectstroke
> showpage
> %%EOF
>
> To cure this problem I added the following 3 lines after
> %%EndComments (see attached file 'test_A3L.ps'):
>
> %%BeginSetup
> <</PageSize[ 843 1192 ]>>setpagedevice
> %%EndSetup
>
> This works fine and yields a correct PDF file.  But when
> viewing the PS file with GV the full-size picture is only
> shown if the option '-antialias' is active; with '-noantialias'
> it is clipped at a width of 843 points.  Another observation
> is that, when viewing a multipage document (generated in the
> kind shown above) with '-antialias' active, the part right of
> 843 points shows an overlap of the new and the previous page(s).
> The can then be cured by switching 'antialias' off and on again.
> What's wrong here?  Am I doing something wrong or am I missing
> something, or is it a bug in GV?
>
> Thanks in advance!
>
> Roland
>
>
> +----------------------------------------------------------------------+
> |  Roland Schilling                      Home-Office: +49(89)32929-670 |
> |  Max-Planck-Institut für Gravitationsphysik                          |
> |  -- Albert-Einstein-Institut --                                      |
> |  D-85748 Garching                           E-mail:   ros@... |
> |  Germany                           http://www.geo600.uni-hannover.de |
> +----------------------------------------------------------------------+
> Please avoid sending me Word or PowerPoint attachments.
> See http://www.gnu.org/philosophy/no-word-attachments.html
>  

Greetungs from Germany

Markus Steinborn
GNU gv maintainer