A way to preview a local PDF in DC View SDK?
I'm running into an issue where I cannot preview a local pdf.
I have tried:
adobeDCView.previewFile(
{
content: {location: {url: "file:///C:/my/sandbox/local_file.pdf"}},
metaData: {fileName: "local_file.pdf"}
}, {embedMode: "IN_LINE", showDownloadPDF: true, showPrintPDF: true});
});and
adobeDCView.previewFile(
{
content: {location: {url: "local_file.pdf"}},
metaData: {fileName: "local_file.pdf"}
}, {embedMode: "IN_LINE", showDownloadPDF: true, showPrintPDF: true});
});But I always just get a "File preview error".
In the Adobe View SDK repo, I did see the "Work with Local File" example . But this is not what I'm looking for. In the example, it uses a File Uploader. For my purposes, I want to just hardcode a local file location for my PDF into my JS code (preferably relative to my index.html file). That way I can easily work on my local machine.
Can you please advise? Thank you!
PS. Note that my index.html is located in "file:///C:/my/sandbox/" in the same dir as local_file.pdf.
