Print Page | Close Window

Text in PDF is not visible after RenderPage...

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=778
Printed Date: 17 May 24 at 10:58AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Text in PDF is not visible after RenderPage...
Posted By: bboldi
Subject: Text in PDF is not visible after RenderPage...
Date Posted: 02 Sep 07 at 7:23AM
Here is the PDF. http://www.b2ss.net/textandpicture.pdf ... when I use qpdf to render the PDF only the image is visible the text is not... why? what can i do to get it work properly? Please help.

thanks in advance.

I forgot to mention: i'm using DELPHI DCU version from delphi and the method RenderPAgeToStream, the problem appears there. When I use .NET C# and ActiveX control - renderdocumenttofile, it's working perfectly...



Replies:
Posted By: Ingo
Date Posted: 02 Sep 07 at 2:58PM
Hi!

The dcu-version is 5.21 and the activex is 5.22. I think Marian had made few improvements in the 5.22-version - they are missing in the 5.21-version. So it's like it is. You can use the activex-version or you can pay Marian to do this improvements in the dcu-version for you personal, too.

Best regards,
Ingo



Posted By: bboldi
Date Posted: 02 Sep 07 at 6:17PM
I could use the activeX version. Can anyone please send me an example for using RenderPageToStream in delphi?

ps: How much for the 5.22 DCU version?


Posted By: Ingo
Date Posted: 03 Sep 07 at 1:32AM
Hi!

Marian don't share the new 5.22 code for free. If you want to buy it you can ask at him at support [ at ] quickpdf [ dot ] org.

Best regards,
Ingo


Posted By: bboldi
Date Posted: 03 Sep 07 at 3:33AM
Thanks.


Posted By: marian_pascalau
Date Posted: 03 Sep 07 at 8:07AM
Sample of using QuickPDF.RenderPageToStream.
 
procedure RenderPageToStream(
    Pdf : IQuickPDF2;
    Stream : TStream;
    PageResolution: Integer = 110; // usualy used is 72; acrobat use 110.
    ImageType: Integer = 0; // 0 is BMP; 3 is JPG; 4 is GIF; 5 = PNG
    ZoomFactor: Double = 1; // 1 = 100%
    PageRotation: Integer = 0); // possible values are: 0, 90, 180, 270
var
    istm : ActiveX.IStream;
begin
     ASSERT(Assigned(Pdf));
     ASSERT(Assigned(Stream));
        istm := TStreamAdapter.Create(Stream, soReference);
        try
            Pdf.RenderPageToStream(
                PageResolution,
                Pdf.SelectedPage,
                ImageType,
                istm,
                ZoomFactor,
                PageRotation);
        finally
            istm := nil; // will release the StreamAdapter !!!
        end;
end;


Posted By: bboldi
Date Posted: 03 Sep 07 at 8:15AM
Thank you.



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