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!
RenderPageToStream not working under MAC |
Post Reply |
Author | |
harry stahl
Beginner Joined: 04 Jan 19 Location: Germany, Bonn Status: Offline Points: 11 |
Post Options
Thanks(0)
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 |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
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 |
|
harry stahl
Beginner Joined: 04 Jan 19 Location: Germany, Bonn Status: Offline Points: 11 |
Post Options
Thanks(0)
|
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 |
|
harry stahl
Beginner Joined: 04 Jan 19 Location: Germany, Bonn Status: Offline Points: 11 |
Post Options
Thanks(0)
|
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! |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store