Bug 693663 - pxlcolor and ps2write both are failing with /VMerror in --.begintransparencygroup--
Summary: pxlcolor and ps2write both are failing with /VMerror in --.begintransparencyg...
Status: RESOLVED DUPLICATE of bug 689805
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PS Writer (show other bugs)
Version: 9.05
Hardware: PC Windows 7
: P4 normal
Assignee: Ken Sharp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-26 11:09 UTC by Gaurav
Modified: 2014-02-17 04:45 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments
pdf file used as input (5.04 MB, application/pdf)
2013-02-26 11:09 UTC, Gaurav
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gaurav 2013-02-26 11:09:03 UTC
Created attachment 9324 [details]
pdf file used as input

Hi,

I have one pdf file snmp-ppt.pdf. While converting PDF to PS using ps2write Or PDF to PCL using pxlcolor, getting same error. It created single page PS/PCL output file but that single page is also not correct. 
Please have the attached PDF file.


C:\Program Files\gs\gs9.02\bin>gswin32c -dNOPAUSE -dBATCH -dSAFER -sDEVICE=ps2wr
ite  -dLanguageLevel=2 -dNOINTERPOLATE -sPAPERSIZE=a4 -sOutputFile="E:\snmp.ps"
"E:\snmp-ppt.pdf"
GPL Ghostscript 9.02 (2011-03-30)
Copyright (C) 2010 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 31.
Page 1
Error: /VMerror in --.begintransparencygroup--
VM status: 3 691766 1994224
Current allocation mode is local
Last OS error: 12
GPL Ghostscript 9.02: Unrecoverable error, exit code 1

C:\Program Files\gs\gs9.02\bin>gswin32c -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pxlco
lor  -dNOINTERPOLATE -sPAPERSIZE=a4 -sOutputFile="E:\snmp-pcl.pcl" "E:\snmp-ppt.
pdf"
GPL Ghostscript 9.02 (2011-03-30)
Copyright (C) 2010 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 31.
Page 1
Error: /VMerror in --.begintransparencygroup--
VM status: 3 633964 1962976
Current allocation mode is local
Last OS error: 12
GPL Ghostscript 9.02: Unrecoverable error, exit code 1
Comment 1 Ken Sharp 2013-02-26 17:07:14 UTC
This is due to the fact that neither PXL nor PostScript supports the PDF transparency model. As a result, the content must be rendered to an image and that image placed in a relevant PXL/PS program.

There is no provision to use a display list for this, so the whole area of transparency, at the designated resolution, must fit in memory. Since Cairo PDF files routinely designate the whole page as transparent this means the whole rendered bitmap must fit in memory. You don't have enough available memory to do so, so you get a VM error (surprise!)

The default resolution of ps2write is 720 dpi, I don't know the default for PXL but I would suggest that you use the -r switch to reduce the resolution.

*** This bug has been marked as a duplicate of bug 689805 ***