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!
Firemonkey: RenderPageToDC |
Post Reply |
Author | |
alexdmatveev
Beginner Joined: 09 Oct 14 Status: Offline Points: 12 |
Post Options
Thanks(0)
Posted: 09 Oct 14 at 1:50PM |
Hello,
does anybody know a way to render a PDF page to Firemonkey TImage? in Delphi DCL I go this way: FDebenu.RenderPageToDC(72, 1, imCanvas.Canvas.Handle); but in FMX I have no direct access to Image's Device Context... pls show me the way. Thanks a lot. |
|
alexdmatveev
Beginner Joined: 09 Oct 14 Status: Offline Points: 12 |
Post Options
Thanks(0)
|
Possible solution:
procedure TfrmPdfFormEditor.RenderDocument(page: Integer); var ms: TMemoryStream; begin ms := TMemoryStream.Create; FDebenu.RenderPageToStream(72, page, 0, ms); ms.Position := 0; imCanvas.Bitmap.LoadFromStream(ms); ms.Free; end; Works for me.
|
|
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