- Posts: 1123
- Thank you received: 73
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about iOS development and PDF
Error When Load PDF With Multimedia Content
IP: 192.168.0.70
13 years 1 month ago #1959
by radaee
Replied by radaee on topic Error When Load PDF With Multimedia Content
int Page_getAnnotMovie( PDF_PAGE page, PDF_ANNOT annot, char *mov, int len );
int Page_getAnnotSound( PDF_PAGE page, PDF_ANNOT annot, char *snd, int len );
return 0 if no multimedia, otherwise return the length of string.
for PDFV functions:
PDFV_PAGE PDFV_getPageFromPoint( PDF_VIEW v, float x, float y, PDF_RECT *rect );
PDF_ANNOT PDFV_pageGetAnnotFromPoint( PDF_VIEW v, PDFV_PAGE page, float x, float y );
bool PDFV_pageGetAnnotMovieData( PDF_VIEW v, PDFV_PAGE page, PDF_ANNOT annot, const char *path );
bool PDFV_pageGetAnnotSoundData( PDF_VIEW v, PDFV_PAGE page, PDF_ANNOT annot, int paras[4], const char *path );
int Page_getAnnotSound( PDF_PAGE page, PDF_ANNOT annot, char *snd, int len );
return 0 if no multimedia, otherwise return the length of string.
for PDFV functions:
PDFV_PAGE PDFV_getPageFromPoint( PDF_VIEW v, float x, float y, PDF_RECT *rect );
PDF_ANNOT PDFV_pageGetAnnotFromPoint( PDF_VIEW v, PDFV_PAGE page, float x, float y );
bool PDFV_pageGetAnnotMovieData( PDF_VIEW v, PDFV_PAGE page, PDF_ANNOT annot, const char *path );
bool PDFV_pageGetAnnotSoundData( PDF_VIEW v, PDFV_PAGE page, PDF_ANNOT annot, int paras[4], const char *path );
IP: 192.168.0.70
13 years 1 month ago #1965
by ex93nball
Replied by ex93nball on topic Error When Load PDF With Multimedia Content
Sorry, i don't understand where file i must write that code.
i want to play audio or video to my own player, what i must do to send path of multimedia content path to my own player..???
- thanks for fast reply
i want to play audio or video to my own player, what i must do to send path of multimedia content path to my own player..???
- thanks for fast reply
IP: 192.168.0.70
13 years 1 month ago #1969
by radaee
Replied by radaee on topic Error When Load PDF With Multimedia Content
yes, you need to save multimedia to a temporary path(extract from PDF).
and then play the file.
and then play the file.
IP: 192.168.0.70
13 years 1 month ago #1984
by ex93nball
Replied by ex93nball on topic Error When Load PDF With Multimedia Content
how to extract to a temporary path..???
sorry, i newbie hehehe...
- thanks for fast reply
sorry, i newbie hehehe...
- thanks for fast reply
IP: 192.168.0.70
13 years 1 month ago - 13 years 1 month ago #1985
by radaee
Replied by radaee on topic Error When Load PDF With Multimedia Content
you can save data to directory which you can create and write file.
examples like this:
temporary can be obtained by:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
examples like this:
Code:
PDFV_RECT rect;
PDF_PAGE page = PDFV_getPageFromPoint( m_view, x, y, &rect );
PDF_ANNOT annot = PDFV_pageGetAnnotFromPoint( m_view, page, x, y );
char file_name[256];
PDFV_pageGetAnnotMovie( m_view, page, annot, file_name );
char temp_path[256];
//get a temporary path, mostly it is "cache" path
strcat( tmp_path, "/" );
strcat( tmp_path, file_name );
PDFV_pageGetAnnotMovieData( m_view, page, annot, file_name );
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
Last edit: 13 years 1 month ago by .
IP: 192.168.0.70
13 years 1 month ago #1986
by ex93nball
Replied by ex93nball on topic Error When Load PDF With Multimedia Content
Great, thanks.. now my prob is how to make horizontally slide not vertically slide..??
i very want to develop iOS with radaee component
- thanks for fast reply
i very want to develop iOS with radaee component
- thanks for fast reply
Time to create page: 0.482 seconds