Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Transparent Showing As Grey On Render
  FAQ FAQ  Forum Search   Register Register  Login Login

Transparent Showing As Grey On Render

 Post Reply Post Reply
Author
Message
andreweberle View Drop Down
Beginner
Beginner


Joined: 21 Apr 20
Location: Australia
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote andreweberle Quote  Post ReplyReply Direct Link To This Post Topic: Transparent Showing As Grey On Render
    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


Edited by andreweberle - 28 Oct 20 at 9:38AM
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
andreweberle View Drop Down
Beginner
Beginner


Joined: 21 Apr 20
Location: Australia
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote andreweberle Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store