Question
File Preview Error; Demo works but not the new PDF URL
/* Control the default view mode */
const viewerConfig = {
/* Allowed possible values are "FIT_PAGE", "FIT_WIDTH" or "" */
defaultViewMode: "",
};
/* Wait for Adobe Document Services PDF Embed API to be ready */
document.addEventListener("adobe_dc_view_sdk.ready", function () {
/* Initialize the AdobeDC View object */
var adobeDCView = new AdobeDC.View({
/* Pass your registered client id */
clientId: "<YOUR_CLIENT_ID>",
/* Pass the div id in which PDF should be rendered */
divId: "adobe-dc-view",
});
/* Invoke the file preview API on Adobe DC View object */
adobeDCView.previewFile({
/* Pass information on how to access the file */
content: {
/* Location of file where it is hosted */
location: {
},
},
/* Pass meta data of file */
metaData: {
/* file name */
fileName: "BSW Proposal -- Danny Testing - Flat Roof Tilt Rack - 01-15-2020 03_23 PM.pdf"
}
}, viewerConfig);
});
