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 - RenderPageToStream not working under MAC
  FAQ FAQ  Forum Search   Register Register  Login Login

RenderPageToStream not working under MAC

 Post Reply Post Reply
Author
Message
harry stahl View Drop Down
Beginner
Beginner


Joined: 04 Jan 19
Location: Germany, Bonn
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote harry stahl Quote  Post ReplyReply Direct Link To This Post Topic: RenderPageToStream not working under MAC
    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;


Edited by harry stahl - 08 Jan 19 at 11:46PM
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: 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

Back to Top
harry stahl View Drop Down
Beginner
Beginner


Joined: 04 Jan 19
Location: Germany, Bonn
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote harry stahl Quote  Post ReplyReply Direct Link To This Post 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....

Edited by harry stahl - 09 Jan 19 at 10:51PM
Back to Top
harry stahl View Drop Down
Beginner
Beginner


Joined: 04 Jan 19
Location: Germany, Bonn
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote harry stahl Quote  Post ReplyReply Direct Link To This Post 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!

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