Print Page | Close Window

RenderPageToStream not working under MAC

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=3660
Printed Date: 19 Apr 24 at 8:51AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: RenderPageToStream not working under MAC
Posted By: harry stahl
Subject: RenderPageToStream not working under MAC
Date Posted: 08 Jan 19 at 11:38PM
I use QPDF-Lib 16.2 for Delphi in the DCU-Version.

When I use the same function, that works well on Windows, on the MAC-Platform, the 

RenderPageToStream (DPI, QPPageNum, PicType, AMemorStream);

gives me as a result only a black Image (Pictype = 5, thats PNG) (correct width and height).

If I use PicType 0 (.BMP) then there is an error reading the bitmap.

It seems this function does not work? 
Or does anybody use this function successfully under MAC?

Here is a excerpt of the source I use (works well on Windows):

if Assigned(QP) then begin
    MS := TMemoryStream.Create;
    try
      QP.RenderPageToStream(DPI, QPPageNum, PicType, MS);
      MS.Seek(0, soFromBeginning);
      AktPic.LoadFromStream(MS);
    finally
      MS.Free;
    end;
  end;



Replies:
Posted By: Ingo
Date Posted: 09 Jan 19 at 7:28PM
Hi Harry,

think you didn't read this?
https://www.debenu.com/docs/pdf_library_reference/RenderPageToStream.php
"...this function is only available in the delphi edition...".
BTW: Most (all?) stream functions are only for the delphi-edition. RenderPageToString should work with iOS.



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



Posted By: harry stahl
Date Posted: 09 Jan 19 at 10:50PM
I read it and I use the Delphi-DCU-Version for MAC (desktop-develepment, no IOS), so it should work. But it does not....


Posted By: harry stahl
Date Posted: 25 Jan 19 at 12:39PM
So a final information to that problem: The RenderPageToStream-function was indeed not supported by the MAC-DCU-Version. At this Moment it is also not supported in the .dylib, but that will be change soon. In the meantime I use RenderPageToString, that can be converted to a stream and so I can use it.

At this moment I'm very happy, because the preview dylib-interface for Delphi they gave me, works very well. And I was also able to use the c++ .so DLL for Linux to compile a solution with Delphi for Linux.

I assume, in the comming 16.13 Version will be all the finall stuff.

So I#m glad to use this powerfull PDF-Solution now on Windows, MACOS and Linux!




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