🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.postscript.programming
5 messages
5 total messages Started by jhonichen Fri, 21 Nov 2008 11:08
How to change ps file page background to transparent
#131
Author: jhonichen
Date: Fri, 21 Nov 2008 11:08
2 lines
865 bytes
Hi,
I'm converting html to ps, but it produces a solid white background color. how should I change the ps file so the page background will be transparent after converted to image?
Re: How to change ps file page background to transparent
#132
Author: Helge_Blischke
Date: Fri, 21 Nov 2008 14:40
5 lines
820 bytes
It depends on how the application generating the PostScript job implements the white background.

If you could supply a sample file, I possibly could give you some hints .

Helge
Re: How to change ps file page background to transparent
#133
Author: jhonichen
Date: Fri, 21 Nov 2008 16:13
8 lines
851 bytes
Hi,
Thank you for the reply.

The sample file can be retrieved on <http://adbuilderdev.falconocp.com/companyname.ps>

It has solid white background, and I need to change the background to transparent.

Thanks again for the help...
Re: How to change ps file page background to transparent
#134
Author: Jeffrey H. Coffield
Date: Fri, 21 Nov 2008 16:48
24 lines
2015 bytes

jhonichen@adobeforums.com wrote:
> Hi,
> Thank you for the reply.
> 
> The sample file can be retrieved on <http://adbuilderdev.falconocp.com/companyname.ps>
> 
> It has solid white background, and I need to change the background to transparent.
> 
> Thanks again for the help...

The line that is putting the white background is :

	612 792 false pdfSetup

If you can either delete this line or comment it out that will make the
background transparent.

Note that the "Company name line has a white background that continues
to the right side of the page.

Jeff Coffield
www.digitalsynergyinc.com
Re: How to change ps file page background to transparent
#142
Author: Helge_Blischke
Date: Tue, 16 Dec 2008 16:28
11 lines
1271 bytes
In the case of this sample file, the white background is generated by the statements (the comments beginning with a percent sign added by me):

[1 1 1] sc % set red, green, and blue to maximum, i.e. white

0 0 800 47 re % define a rectangle that describes the area

f % fill the rectangle with the defined color

Note that the instructions like "sc" etc. are defined in the prologue section of the file.

And the file looks like generated by (or by a descendant of) the xpdf suite from a PDF file. Therefore the possibility of an algorithmic solution for stuff like this seems rather unlikeky
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads