Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about iOS development and PDF

Open the PDF using NSData instead the path ?

More
9 years 9 months ago #10778 by Shades
Hello,

is there a way to open the PDF passing data instead of the path ?
Actually I am using this :
Code:
-(int)PDFOpen:(NSString *)path : (NSString *)pwd{
But I am wondering if there is another method to preview the PDF without the path.It would be very helpful for me.

Thank you
More
9 years 9 months ago #10779 by emanuele
Hi,
you could try to use PDFopenMem instead of PDFOpen
More
9 years 9 months ago - 9 years 9 months ago #10780 by Shades
Thank you,

Could you please tell me more how should I pass the data (it's a void not NSDATA ) ?
Code:
-(int)PDFopenMem : (void *)data : (int)data_size :(NSString *)pwd
Code:
NSUInteger len = [originalData length]; int size = (int) len; void *typedData = malloc(len); int r= [self PDFopenMem:typedData :size :NULL]; int pageno =1; if ( r>0) { [self PDFThumbNailinit:pageno]; }
and the result is 0 ?
With the PDFOpenMem is it possible to addBitmap and get the path and the data ?
Last edit: 9 years 9 months ago by Shades. Reason: More detail
Time to create page: 0.399 seconds
Powered by Kunena Forum