- Posts: 19
- Thank you received: 0
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
RichMedia annotation not working
IP: 178.120.36.106
6 years 3 months ago #15082
by MaxM
RichMedia annotation not working was created by MaxM
Good afternoon, Radaee, I had a problem playing the sound annotation which is saved as page.AddAnnotRichMedia ("/ player / AudioPlayer.swf", newFile.getPath (), 1, document.NewImage (BitmapFactory. decodeResource (context.getResources (), R.drawable.ic_mic_white_circle_blue_), true), pt2); Everything works well if I transfer a PDF document between the clients of our application, but if the client wants to save it, for example, to a computer and open it using Adobe Acrobat Reader, Text and graphic are highlighted and read, then the sound does not work. .. Maybe for opening in another application I need to save additional information or fill in additional fields?
IP: 111.196.242.40
6 years 3 months ago #15085
by radaee
Replied by radaee on topic RichMedia annotation not working
not understand, i tested AddRichMediaAnnot(), the annotation can play music in Acorbat.
the file is: www.radaeetz.com/123.pdf
i using following codes to add sound annotation:
the file is: www.radaeetz.com/123.pdf
i using following codes to add sound annotation:
Code:
PDF_IMAGE dimg = m_doc.DocNewImageJPEG("f:\\img.jpg", false);
RDRECTF rect;
rect.left = 100;
rect.top = 100;
rect.right = 436;
rect.bottom = 566;
m_doc.Page_AddRichMediaAnnot(page->page, "E:\\workspace\\output\\AudioPlayer.swf", "F:\\Seaside.mp3", 1, dimg, rect);
m_doc.DocSave(NULL);
IP: 111.196.242.40
6 years 3 months ago #15086
by radaee
Replied by radaee on topic RichMedia annotation not working
this path: "/player/AudioPlayer.swf", maybe a problem.
all file path shall be absolute path.
also newFile.getPath() may return relative path.
all file path shall be absolute path.
also newFile.getPath() may return relative path.
IP: 178.120.36.106
6 years 3 months ago #15088
by mrsmrd
Replied by mrsmrd on topic RichMedia annotation not working
I don’t know why but blocked my account from which I asked this question.
I'll try to change the path
I'll try to change the path
IP: 111.196.242.40
6 years 3 months ago #15089
by radaee
Replied by radaee on topic RichMedia annotation not working
the PDF file you attached, has not embed file "VideoPlayer.swf" to PDF file.
so, "/player/AudioPlayer.swf" is not exists.
next time, you can check file exists, before this method invoked.
so, "/player/AudioPlayer.swf" is not exists.
next time, you can check file exists, before this method invoked.
IP: 178.120.36.106
6 years 3 months ago #15090
by mrsmrd
Replied by mrsmrd on topic RichMedia annotation not working
1. Tell me how you look that the file does not contain a player ("VideoPlayer.swf").
2. What needs to be done to play sound in www.radaeetz.com/123.pdf on windows 10, Adobe Reader is installed
2. What needs to be done to play sound in www.radaeetz.com/123.pdf on windows 10, Adobe Reader is installed
Time to create page: 0.425 seconds