Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.45 KB | None | 0 0
  1.         NSData CreatePDF (string text, float w, float h)
  2.         {
  3.             NSMutableData data = new NSMutableData ();
  4.             UIGraphics.BeginPDFContext (data, new RectangleF (0, 0, w, h), null);
  5.             UIGraphics.BeginPDFPage ();
  6.             CGContext gctx = UIGraphics.GetCurrentContext ();
  7.            
  8.             //how to draw the text here?
  9.            
  10.             UIGraphics.EndPDFContent ();
  11.             return data;
  12.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement