RenderToBmp Xamarin iOS - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Development and suggestions about third part tool integration.
Cordova, Xamarin, Basic4Android topics are listed here.
  • Page:
  • 1

TOPIC: RenderToBmp Xamarin iOS

RenderToBmp Xamarin iOS 1 year 7 months ago #12160

  • fablhe
  • fablhe's Avatar Topic Author
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 3
  • Thank you received: 0
Hi,
Actually, i'm trying to use RenderToBmp(CGImageRef img) in a Xamarin.iOS project to convert a PDF Page to an image.
It seems that there is no CGImageRef in Xamarin iOS so what can I do to use RenderToBmp in that project ?
Otherwise, do you have another solution to convert a PDFDoc page to a CGImage or an UIImage ?

Cheers,
Fabien.

Please Log in or Create an account to join the conversation.

RenderToBmp Xamarin iOS 1 year 7 months ago #12161

  • emanuele
  • emanuele's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 516
  • Karma: 15
  • Thank you received: 56
Hi,

we just added the GetImageForPage method that allows you to get the image of a specific page (natural size).
You can update the Xamarin project from the repository

Please Log in or Create an account to join the conversation.

RenderToBmp Xamarin iOS 1 year 7 months ago #12177

  • fablhe
  • fablhe's Avatar Topic Author
  • Offline
  • User is blocked
  • User is blocked
  • Posts: 3
  • Thank you received: 0
Thanks for your answer !

I've tried some different things to use GetImageForPage in my Xamarin.iOS project but I have always null as result of the function.
Can you just provide me a kind of example to help me use it ? I'm just trying to open a pdf from a path with OpenFromPath and after I'm calling GetImageForPage to retrieve the image data.

Thanks in advance,
Fabien.

Please Log in or Create an account to join the conversation.

RenderToBmp Xamarin iOS 1 year 7 months ago #12179

  • emanuele
  • emanuele's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 516
  • Karma: 15
  • Thank you received: 56
Hi,

the Xamarin demo project contains also an example of how to get the image of a page, is a commented slice of code at line 121 of ViewController class

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum