|
|
#include "GlobalParams.h" | #include "GlobalParams.h" |
#include "PDFDoc.h" | #include "PDFDoc.h" |
#include "Link.h" | #include "Link.h" |
|
#include "FileSpec.h" |
#include "ErrorCodes.h" | #include "ErrorCodes.h" |
#include "GfxState.h" | #include "GfxState.h" |
#include "CoreOutputDev.h" | #include "CoreOutputDev.h" |
|
Lines 465-471
void XPDFCore::doAction(LinkAction *acti
|
Link Here
|
|---|
|
GooString *fileName, *fileName2; | GooString *fileName, *fileName2; |
GooString *cmd; | GooString *cmd; |
GooString *actionName; | GooString *actionName; |
Object movieAnnot, obj1, obj2; |
Object movieAnnot, obj1, obj2, obj3; |
GooString *msg; | GooString *msg; |
int i; | int i; |
| |
|
Lines 631-637
void XPDFCore::doAction(LinkAction *acti
|
Link Here
|
|---|
|
if (movieAnnot.isDict()) { | if (movieAnnot.isDict()) { |
if (movieAnnot.dictLookup("Movie", &obj1)->isDict()) { | if (movieAnnot.dictLookup("Movie", &obj1)->isDict()) { |
if (obj1.dictLookup("F", &obj2)) { | if (obj1.dictLookup("F", &obj2)) { |
if ((fileName = LinkAction::getFileSpecName(&obj2))) { |
if (getFileSpecNameForPlatform(&obj2, &obj3)) { |
|
fileName = obj3.getString()->copy(); |
|
obj3.free(); |
if (!isAbsolutePath(fileName->getCString())) { | if (!isAbsolutePath(fileName->getCString())) { |
fileName2 = appendToPath( | fileName2 = appendToPath( |
grabPath(doc->getFileName()->getCString()), | grabPath(doc->getFileName()->getCString()), |