pq scan
Answer:
Hi, Dunn.
The pqScan .net PDF to image SDK can convert PDF page to png format. The whole png background and foreground color is depending on the PDF page graphics. In the PDF document, if the page back color is transparent, our .net PDF converter will render output png with transparent background.
In PDF viewers, the back fill color always is white. Sometimes you may feel in some PDF page, the font is black color, and the background is transparent, so the output png file should be transparent background. But actually, the background of PDF page is white color, so the converted png file is not transparent.
If there are some pictures in the PDF page, which the pictures maybe transparent image. While converting, our .net PDF to image converter can render to transparent graphics to the output png file.
And there isn't any other special property or methods to create transparent png image. Please look at the following C# example code, it's just the same as converting PDF to other image formats(jpeg, tiff, bmp, gif).
PDFDocument doc = new PDFDocument();
doc.LoadPDF("sample.pdf");
Bitmap bmp = doc.ToImage(0);
bmp.Save("transparent.jpg");
Hope the C# code can be helpful.
---- pqScan Support Team