Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

Can I set popup content in text annotations?

More
9 years 4 months ago #11418 by netmate
I use the 3.9RC1 version library.

I want to add text annotations and add pop-up content.
But, text annotations do not include pop-up content.
Below is the code I use.

bResult always returns false..

-code-
Page.AddAnnotEditbox (m_annot_rect, 15, 100, 100, fsize, 100);

Annotation annot = page.GetAnnot (page.GetAnnotCount () - 1);
Annot.SetPopupOpen (true);

Boolean bResult1 = annot.SetPopupSubject ( "Subject");
Boolean bResult2 = annot.SetPopupText ( "Text");


help me!!
More
9 years 4 months ago - 9 years 4 months ago #11422 by nermeen
Code:
annot.SetPopupSubject ( "Subject"); annot.SetPopupText ( "Text");

Can be used only with Page.AddAnnotText or Page.AddAnnotPopup, that's why it's not working with Page.AddAnnotEditbox.
For example, check PDFLayoutView.PDFEditAnnot

With Page.AddAnnotEditbox, you can use Annotation.SetEditText
For example, check PDFLayoutView.onEditAnnot
Last edit: 9 years 4 months ago by nermeen.
Time to create page: 0.382 seconds
Powered by Kunena Forum