Lines 22-27
Link Here
|
22 |
#include "GlobalParams.h" |
22 |
#include "GlobalParams.h" |
23 |
#include "PDFDoc.h" |
23 |
#include "PDFDoc.h" |
24 |
#include "Link.h" |
24 |
#include "Link.h" |
|
|
25 |
#include "FileSpec.h" |
25 |
#include "ErrorCodes.h" |
26 |
#include "ErrorCodes.h" |
26 |
#include "GfxState.h" |
27 |
#include "GfxState.h" |
27 |
#include "CoreOutputDev.h" |
28 |
#include "CoreOutputDev.h" |
Lines 465-471
void XPDFCore::doAction(LinkAction *acti
Link Here
|
465 |
GooString *fileName, *fileName2; |
466 |
GooString *fileName, *fileName2; |
466 |
GooString *cmd; |
467 |
GooString *cmd; |
467 |
GooString *actionName; |
468 |
GooString *actionName; |
468 |
Object movieAnnot, obj1, obj2; |
469 |
Object movieAnnot, obj1, obj2, obj3; |
469 |
GooString *msg; |
470 |
GooString *msg; |
470 |
int i; |
471 |
int i; |
471 |
|
472 |
|
Lines 631-637
void XPDFCore::doAction(LinkAction *acti
Link Here
|
631 |
if (movieAnnot.isDict()) { |
632 |
if (movieAnnot.isDict()) { |
632 |
if (movieAnnot.dictLookup("Movie", &obj1)->isDict()) { |
633 |
if (movieAnnot.dictLookup("Movie", &obj1)->isDict()) { |
633 |
if (obj1.dictLookup("F", &obj2)) { |
634 |
if (obj1.dictLookup("F", &obj2)) { |
634 |
if ((fileName = LinkAction::getFileSpecName(&obj2))) { |
635 |
if (getFileSpecNameForPlatform(&obj2, &obj3)) { |
|
|
636 |
fileName = obj3.getString()->copy(); |
635 |
if (!isAbsolutePath(fileName->getCString())) { |
637 |
if (!isAbsolutePath(fileName->getCString())) { |
636 |
fileName2 = appendToPath( |
638 |
fileName2 = appendToPath( |
637 |
grabPath(doc->getFileName()->getCString()), |
639 |
grabPath(doc->getFileName()->getCString()), |
Lines 641-646
void XPDFCore::doAction(LinkAction *acti
Link Here
|
641 |
} |
643 |
} |
642 |
runCommand(cmd, fileName); |
644 |
runCommand(cmd, fileName); |
643 |
delete fileName; |
645 |
delete fileName; |
|
|
646 |
obj3.free(); |
644 |
} |
647 |
} |
645 |
obj2.free(); |
648 |
obj2.free(); |
646 |
} |
649 |
} |