Hi,I am looking to change the default icon I get when adding sticky notes via code to the PDF. Currently I am using this function:---(void)createStickyNoteAnnotation:(PDFPoint *)point{
Page* page = [[pdfViewControl GetDoc] GetPage:1];
PDFRect *r = [[PDFRect alloc] initWithX1: point.getX y1:point.getY x2:point.getX + 70 y2:point.getY + 70];
Text *t = [Text Create:[[pdfViewControl GetDoc] GetSDFDoc] pos:r];
//[t SetTextIconName:[Utils getFilePathInBundle:@"StickyNoteIcon.png"]];
Markup *mu = [[Markup alloc] initWithAnn:t];
[mu SetContents:annotationInformation.value];
Popup *p = [mu GetPopup];
if(p == nil || !p.IsValid){
p = [Popup Create:[[pdfViewControl GetDoc] GetSDFDoc] pos:r];
[mu SetPopup:p];
}
[p SetContents:annotationInformation.value];
[page AnnotPushBack:t];
[self finishedAddingAnnotation];
}
The commented out line [t SetTextIconName:...]; is where I am trying to set the image, but this is throwing an error.
I see the sample project uses a custom image and I would like to do the same, but as its a .a file, I cant see how...
Thanks,
Mike
You received this message because you are subscribed to the "PDFTron PDFNet SDK" group (http://www.pdftron.com/pdfnet/forum.html).
---
You received this message because you are subscribed to the Google Groups "PDFTron PDFNet SDK" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pdfnet-sdk+...@googlegroups.com.
To post to this group, send email to pdfne...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.