Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about iOS development and PDF

TOPIC:

Error When Load PDF With Multimedia Content 11 years 2 weeks ago #1959

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
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 );

Please Log in or Create an account to join the conversation.

Error When Load PDF With Multimedia Content 11 years 2 weeks ago #1965

  • ex93nball
  • ex93nball's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 13
  • Thank you received: 0
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

Please Log in or Create an account to join the conversation.

Error When Load PDF With Multimedia Content 11 years 2 weeks ago #1969

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
yes, you need to save multimedia to a temporary path(extract from PDF).
and then play the file.

Please Log in or Create an account to join the conversation.

Error When Load PDF With Multimedia Content 11 years 2 weeks ago #1984

  • ex93nball
  • ex93nball's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 13
  • Thank you received: 0
how to extract to a temporary path..???

sorry, i newbie hehehe...

- thanks for fast reply

Please Log in or Create an account to join the conversation.

Error When Load PDF With Multimedia Content 11 years 2 weeks ago #1985

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
you can save data to directory which you can create and write file.
examples like this:
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 );
temporary can be obtained by:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
The following user(s) said Thank You: max

Please Log in or Create an account to join the conversation.

Last edit: by .

Error When Load PDF With Multimedia Content 11 years 2 weeks ago #1986

  • ex93nball
  • ex93nball's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 13
  • Thank you received: 0
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

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum