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

More
IP: 178.120.36.106 6 years 3 months ago #15082 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?
More
IP: 111.196.242.40 6 years 3 months ago #15085 by radaee
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:
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);
More
IP: 111.196.242.40 6 years 3 months ago #15086 by radaee
this path: "/player/AudioPlayer.swf", maybe a problem.
all file path shall be absolute path.
also newFile.getPath() may return relative path.
More
IP: 178.120.36.106 6 years 3 months ago #15088 by mrsmrd
I don’t know why but blocked my account from which I asked this question.
I'll try to change the path
More
IP: 111.196.242.40 6 years 3 months ago #15089 by radaee
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.
More
IP: 178.120.36.106 6 years 3 months ago #15090 by mrsmrd
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
Time to create page: 0.425 seconds
Powered by Kunena Forum