Print Page | Close Window

Transparent Showing As Grey On Render

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3857
Printed Date: 19 Apr 24 at 7:14PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Transparent Showing As Grey On Render
Posted By: andreweberle
Subject: Transparent Showing As Grey On Render
Date Posted: 27 Oct 20 at 4:39AM
Hello,

When I render a pdf to a jpg the transparent image appears with a grey background.
I tried flattening the image and tried to see if I could raster the image, however I had no luck,

Below is the code as well as the original and converted file.

# Code
if (PDFLibrary.RenderDocumentToFile(300, 1, 1, 1, output) > 0)
{
     ...
}

# Converted File
https://imgur.com/1u57mho


# Original File
https://imgur.com/1AAtBTm



Replies:
Posted By: Ingo
Date Posted: 27 Oct 20 at 9:11AM
Hi Andre,

the urls only show two images?
Don't know how to download them...
Anyway: Try a CombineContentStream and NormalizePage after load and before rendering.
If there isn't any success try other image formats to look for better results.

Cheers and welcome here,
Ingo



-------------
Cheers,
Ingo



Posted By: andreweberle
Date Posted: 28 Oct 20 at 9:38AM
G'day Ingo,

Thanks for your reply :) always appreciated,

I tried the above mentioned, however I had no luck, I had to use a different method in order to achieve this.

Also my apology's for not upload raw files, I couldn't find how to do it,

Thanks again, hope all is well on your end.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk