Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Transparent Document/Page Background

$
0
0
Is there any way to set the background of either the Document or Page element as transparent? 

Setting either to Aspose.Pdf.Color.Transparent results in a white background; the alpha channel doesn't appear to be affected by the property setter.

For example (assuming an existing PDF):

var pdf = new PdfDocument(filename);
pdf.Document.Background = Color.Transparent;

//pdf.Document.Background.A == 1

The ultimate aim is to save the document as a png, with a transparent background. Any pointers to an approach that would achieve this would be appreciated.

Regards.

Viewing all articles
Browse latest Browse all 3131

Trending Articles