Unlock the full value of DC Web with our global community.
Recently active
How can I preserve the image quality when exporting DOCX to PDF?
I am using the code snippet from the Document Service PDF embed API service, which is not working correctly on my end.I am getting the following error:Here is the code I am using:<script src="https://documentcloud.adobe.com/view-sdk/main.js"></script> <script type="text/javascript"> document.addEventListener("adobe_dc_view_sdk.ready", function(){ var adobeDCView = new AdobeDC.View({clientId: "6d2b4b4b70c64a0c9b71a2fed484e645"}); adobeDCView.previewFile({ content:{location: {url: "http://www.corclinic.com/downloads/COR_PhxMag_reprint_0408.pdf"}}, metaData:{fileName: "COR_PhxMag_reprint_0408.pdf"} }, {embedMode: "LIGHT_BOX"}); }); </script>Can the source PDF be from any website, or does it have to be stored on the adobe cloud for this work? Thank you
Is there any ballpark timescale for when the remaining Annotation Tools (line, arrow, rectangle etc.) available in Acrobat will be supported in the PDF Embed API? TIARob
Hi, all, Question for experts from a newb. This is what I'd like to do, but not sure if I can do it with Adobe APIs. I have a client that generates a lot of documents and images. Formats are Word, Excel, Text, PNG. They also generate PDFs. Some of the PDFs contain annotations, comments and filled-in fields. What we need is a RESTful API that can do this: We send the API a pile of documents of various formats using HTTP POST. We tell the API what order the docs should be in. This "pile" can contain all the docs above including annotated PDFs. The API converts everything it was sent into ONE single, combined PDF in the specified order. All annotations of any kind are "flattened". Is this possible? If so, can someone point me to the API docs that would cover this? I use Postman and know how to work with APIs, but don't readily see anything in the docs here about submitting via REST, setting the doc order, flattening, etc. Thanks!
I'm using the new PDF to Excel feature and I have mixed raster based images and text inside PDF files.The raster based image is a table format showing borders with numbers in the table cells.This is coming over in the excel file as just an image and not OCR operations are occuring.I don't see any specific settings I can use for how it is converting the PDF file.Is there a way to force OCR on all raster based images within the PDF? Thanks!
I'm developing a feature to convert MS files to PDF using the PDF Tools API of Adobe and facing an issue regarding the converting time for large MS files. I'm calling in my code to a REST API to Spring Java service which uses the PDF Tools API, my time limit of the REST API is 120 seconds and for some large MS files, the PDF is not being generated in this time range. The REST API returns a failed callback but the PDF is being created in the Java server, just after more than 120 seconds.We couldn't find solutions for this issue described above, could you please try to advise me, or provide a reference, for handling this issue? Thanks in advance,Shahar
Greetings! I am having trouble getting the PDF embed API to work on my site. I keep encountering the message "File Preview Not Available" with any PDF file I try. The domain is a test site I created with Weebly https://corporatesampleintranetpage.weebly.com/.The code I am using is: <div id="adobe-dc-view"></div><script src="https://documentcloud.adobe.com/view-sdk/main.js"></script><script type="text/javascript">document.addEventListener("adobe_dc_view_sdk.ready", function(){ var adobeDCView = new AdobeDC.View({clientId: "<98a6ee14c3d64f3a8eae67ddf3534fc1>", divId: "adobe-dc-view"});adobeDCView.previewFile({content:{location: {url: "https://documentcloud.adobe.com/link/documents/files/sample.pdf"}},metaData:{fileName: "ACORD.pdf"}}, {});});</script> Any and all help is VERY MUCH APPRECIATED! Beth
In the Adobe DC PDF View SDK, I'm experiencing an issue similar to this one in that top-level annotations of any kind will not be persisted. Commenting on particular parts of text will respond with that error, but no annotations besides replies will dispatch an ANNOTATION_ADDED event. ANNOTATION_COUNT does increase for text comments despite the error that displays. I've isolated the failure - registering callbacks besides the following do not affect the presence of the error: previewFilePromise.then((adobeViewer) => { adobeViewer.getAnnotationManager().then((annotationManager) => { annotationManager.registerEventListener(function (event) { console.log(event.type, event.data) }, eventOptions) }) }) Here's the traceback, though it's cryptic due to the lack of sourcemaps: Uncaught TypeError: t is undefined _validateMinLength https://documentcloud.adobe.com/view-sdk/2
We have embeded a PDF file on our website through Adobe PDF Embed API.On all desktop browser the PDF gets loaded and properly display.On mobile it works on Safari and Firefox, Chrome surprisingly always shows an error after having loaded 100% of the document. Taping on "ok" doesn't get you any further... it seems that nothing is loaded...And yes, I tried various mobiles phones with Chrome... it never worked!Any ideas how to solve this issue?
Hi, My embed api is working fine. Now I want to know if there is any way to handle exeption occure in adobeDCView.previewFile() function, like 404 etc.I donot find anything in documents. If I give wrong pdf url this function print code: "PREVIEW_RENDERING_FAILED" , but I do not know how to handle it.
I have searched this issue on the community and haven't found an answer. Two days ago, Acrobat DC opened all PDFs in tab view. Yesterday, it stopped. When I go into Edit: Preferences: General, I do not get the option to select / deselect "Open documents as new tabs in the same window" as others have suggested. Please help!
Wanting to use this Power automate action however my spreadsheet is broken into two tabs. One being a summary and the other 'detail'.At present the action converts the entire sheet regardless of page setup in the excel being set to just one cell on the detail tab (attempting to avoid it producing the whole thing).Any way to filter or select just the one tab of sheet in the action would be great.
When we do the pdf to docx conversion from adobe acrobat dc application quality is good butwhen i tried through your node js sdk api. quality is bit poor.please find the attached sorece pdf and both acrobat dc application coverted and alsonode js sdk sample code one converted.please observe the node js sdk convserted file.please reply me as soon possible!
Hi there, When I cut and paste the html code from the Demo Site and embed this into my Weebly website, it doesn't work at all. I have tried to embed the basic Bodeo Brochure sample html code you have on the Demo site (see below):<div id="adobe-dc-view"></div> <script src="https://documentcloud.adobe.com/view-sdk/main.js"></script> <script type="text/javascript"> document.addEventListener("adobe_dc_view_sdk.ready", function(){ var adobeDCView = new AdobeDC.View({clientId: "<YOUR_CLIENT_ID>", divId: "adobe-dc-view"}); adobeDCView.previewFile({ content:{location: {url: "https://documentcloud.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf"}}, metaData:{fileName: "Bodea Brochure.pdf"} }, {}); }); </script> This didn't work. I then included my Client ID in between the " " marks, and pointed to a Google Drive url pdf document, and changed the fileName in the html as instructed. This didn't work either. I thought pointing to Google Driv
Dear valued Community, we are currently trying to use and integrate the PDF Embed API in our Platform of "ServiceNow". What we already achived is, that a PDF attachted to a record can be viewed and annotated. The main problem is, that the PDF get's destroyed after saving it via GlideSysAttachment.write() into the ServiceNow Database. We are receiving a blank PDF which includes the correct number of pages and - if available - save Annotations made via the API. I think that our code is mocking up the binary part of the PDF, while (trying to) translating the BufferArray into String, as the .write() function is awaiting a plain string. Our options:{ showDownloadPDF: true, showPrintPDF: false, enableAnnotationAPIs: true, includePDFAnnotations: true } Our Transform-Part in the Save-Promise:var textDecoder = new TextDecoder('utf-8'); file.content = textDecoder.decode(content); I know, that we are doing it wrong, because transforming binary into String will mock u
Demo works fine but when I enter my own client ID and pdf I get the file preview error. Recreated credientials as suggested in this thread. but didn't solve the issue. Read a bit about CORS issues but the pdf I'm using is located at my own domain so don't think that's it. Tried using different pdfs and locating them in the main directory not using subfolders and still the same preview error. Any help would be appreciated to get this sized container working. Thanks, .
I'm trying to use the STATUS_API in my application, but it simply doesn't work. Am I doing it wrong or there anything more to it?adobeDCView.registerCallback( AdobeDC.View.Enum.CallbackType.STATUS_API, function (metaData) { /* Resolve or reject response in given format */ /* Status callback success case */ return new Promise((resolve, reject) => { resolve({ code: AdobeDC.View.Enum.ApiResponseCode.SUCCESS, }); }); /* Status callback file modified case */ return new Promise((resolve, reject) => { resolve({ code: AdobeDC.View.Enum.ApiResponseCode.FILE_MODIFIED, data: { modifiedBy: { name: "iiii", mail: "mail@mail.com", } } }); }); }, { filePollFrequency: 10, keepPolling: true, } ); Even aft
Hi,In adobe node js sdk can we direclty take files through aws s3 link or https link? Thanks
Hi all, I'm struggling to find an answer/solution to this so I'm starting a new thread.Can I load a different PDF into an existing AdobeDC.View?I have a list of PDF on a site and one instance of AdobeDC.View. When the PDF link is clicked I want to open that PDF in AdobeDC.View? Is this possible? Thanks.V
Hi Every one,do you know if with api we could fill pdf and expert pdf as filiable pdf ? thanks a lot
Hello, Are there any possible reasons, why FilePreviewEvents are no longer firing?We registered the 2 callbacks below, the PDFAnalyticsEvents are firing but not the FilePreviewEvents.This is working before, but we don't what has changed. We don't get any javascript errors on the browser console. adobeDCView.registerCallback( AdobeDC.View.Enum.CallbackType.EVENT_LISTENER, function (event) { alert.log("Event: " + event.type); if (event.type === "PREVIEW_SELECTION_END") { previewFilePromise.then(adobeViewer => { adobeViewer.getAPIs().then(apis => { apis.getSelectedContent() .then(result => { selectedText = result.data; console.log("selectedText = " + selectedText); }) .catch(error => console.log(error));
An ISV wants a customer to use their application with PDF Tools API from a site which does not have direct internet access due to security reasons. However, the customer can provide a proxy server to access resources on the internet. In order to make this work, the ISV is supposed to provide domain name(s) / URL(s) to our customer's network team. Can you please advise on this matter?
I am using Embed API. I download pdf using $.ajax() and then load pdf asfunction loadPdf(pdfPath) { window.adobeDCView = new AdobeDC.View({clientId: adobeApiKeyStaging, divId: "adobe-dc-view"}); adobeDCView.previewFile({ content: { promise: Promise.resolve(stringToArrayBuffer(pdfPath)) }, metaData:{fileName: "Test1.pdf"} }, viewerConfig); }I convert string to Array Buffer and feel its not coverting correctly or Promise.resolve() require something else ?function stringToArrayBuffer2(bin) { var len = bin.length; var uInt8Array = new Uint8Array(len); for (var i = 0; i < len; i++) { uInt8Array[i] = bin.charCodeAt(i); } return uInt8Array.buffer; }If I send base64 from server then its working fine, but when I read raw pdf data then its showing blank pages. Following example is also working fine.function fetchPDF(urlToPDF) { return new Promise((resolve) => { fetch(
Redirect PDF document to Adobe Document Cloud from Sharepoint Framework Solution. Is there anyway to integrate or redirect to adobe document cloud from SPFX
/* 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
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.