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

How to hide a button of mutilmedia in pdf file?

More
IP: 45.77.124.47 7 years 10 months ago #13792 by 军罗
I had insert a vedio to pdf file first,and set status to invisible,then i used radaee SDK to open it ,but it visible。I found a method to hide it, www.radaeepdf.com/forum/search?query=set...7/2018&childforums=1 ,
my code is in follow:

public void HideAnnotatioin() {
int pageCount = m_doc.GetPageCount();
for (int i = 0; i < pageCount; i++) {
Page page = m_doc.GetPage(i);
page.ObjsStart();
int anncount = page.GetAnnotCount();
for (int j = 0; j < anncount; j++) {
Annotation annotation = page.GetAnnot(i);
if (annotation != null) {
annotation.SetHide(true);
}
}
m_layout.vRenderSync(m_layout.vGetPage(i));
page.Close();
}
}
but it doesn't work, it make me confused。
More
IP: 212.97.62.176 7 years 10 months ago #13795 by Davide
Hi,
first of all you have to change your code like this :
Code:
public void HideAnnotatioin() { int pageCount = m_doc.GetPageCount(); for (int i = 0; i < pageCount; i++) { Page page = m_doc.GetPage(i); page.ObjsStart(); int annCount = page.GetAnnotCount(); for (int j = 0; j < annCount; j++) { Annotation annotation = page.GetAnnot(j); if (annotation != null) { annotation.SetHide(true); } } //m_layout.vRenderSync(m_layout.vGetPage(i)); page.Close(); } }

I suggest you to place this code just after the pdf opening, as example in the demo project you can put it in the onPostExecute() of OpenTask in PDFViewAct.
Time to create page: 0.543 seconds
Powered by Kunena Forum