Unlock the full value of DC Web with our global community.
Recently active
This week we released a new set of REST APIs, as well as updates to our SDKs to make use of these new endpoints. These endpoints are significantly simpler than before and should be much easier for developers to pick up. For details, you can check our docs here: https://developer.adobe.com/document-services/docs/apis/ As well as the blog post released here: https://blog.developer.adobe.com/announcing-the-new-adobe-document-services-rest-apis-8d85951176cf Let me know if you've got any questions. In the blog post, I link to some sample code that folks are welcome to take, adapt, and make use of.
Hi All, I wanted to share some of my learnings about using Adobe Document Generation API, which is a great way to dynamically generate PDFs and Word documents using API. This was originally posted on Adobe Tech Blog. Tip #1: Make sure your images are encoded correctly in your JSON data You can pass images into your template from inside your JSON data by converting your image data into Base64. When you do include your image as Base64, it is also helpful to include your mime-type like below. While technically you can pass the Base64 without the MIME type, this does help ensure that you don’t run into any errors while processing. If you are writing your code in NodeJS, here is some sample code on how to encode your image file as Base64 in your JSON data: Tip #2: Image file types that are supported When merging images into your document, you can use the following image formats: image/png image/jpeg image/gif image/tiff Tip #3: Tag your documents using Adobe Docume
From the Document Services FAQ"Currently, we do not support use of Document Cloud Services SDK to collect, process, or store sensitive personal data such as protected health information under HIPAA, children’s personal information under COPPA, and other similar information as described in our General Terms (https://www.adobe.com/legal/terms/enterprise-licensing/overview.html) and and Developer Terms of Use (https://wwwimages2.adobe.com/content/dam/cc/en/legal/servicetou/Adobe-Developer-Additional-Terms_en-US_20210125.pdf). However, support for sensitive personal data is coming soon." (my emphasis) My question is how soon (if there is a timeline for the release of this feature)? And if there isn't a deadline, can someone from the product ownership/dev team give an idea of how deep this is in the product backlog?
I fund the same code that fetches properties and writes them to a json file. Very helpful. But am confused as to how to do the reverse to write custom properties to a pdf file. Is there any sample code using Document Services APIs to write custom properties? Thanks!
Hello everyone, I have been using extract api for over a year now, but since past few days I am seeing changes in detection part (illogical) that I have never observed before, For example, there can be paragraph or heading directly under the list tree instead of being under a list item, i.e//Document/L[4]/LI/Lbl//Document/L[4]/LI/LBody//Document/L[4]/P//Document/L[4]/LI[2]/Lbl//Document/L[4]/LI[2]/LBody Not only here, but also in Table of content items in analogous manner.There has been no update in recent changelogs regarding any changes, can someone please point out any information regarding this!My application runs on heuristics which expects list item in a list not directly P or H, so its crucial for me to understand these changes both from logical standpoint and new work need to be put or not
i want to extract PDF files content without margins..here is example Content is only half of Pdf page, i want only the content ..With Adobe İllustrator i can easily extract whole content . Step 1: Open Pdf file with Adobe illustrator , right click on content and select extract to outside and and here is the result ..i get only the content i want.. Are there any avaible api for this process ? if so how can i do it ? Thanks
Hi, I'm getting this error Not authorized to call this enginewhen using the REST API to try to do a document generation. I have setup JWT -> access token authorization which is being used with this request. The JWT is being signed using a key generated through the Adobe Developer Console. What could cause this error? Thanks
Hello!I'm currently using the resulting JSON file generated by the PDF Extract API to make an HTML file using a script. But I would like to know if it's possible to use this API to make the conversion more directly.Thank you for the help! 🙂
I want to know if "Adobe Acrobat Export PDF" module works with the SDK, i want to bought this just to convert PDF to excel files. Thanks.
I have an excel file when I export this from Excel to a PDF format. The file is 45KB in size. The originating xlsx file is 13KB in size. When I try and export the PDF file using the PDF Services API, I get a response stream back that is only 8KB in size and excel refuses to open it, as it says it is corrupted. Do you have any example code of how this should work? I am using C# with the response.GetResponseStream with a FileStream (in a using block) destination using CopyTo. It is shown in the attached file. I am sending all the items that are requested, what seems to be wrong is either what I am being sent or the way I am processing the stream. There are lots of examples of capturing a stream but none of them seem to result in a valid xlsx file. Your help would be appreciated.regardsGeoff Hirst
Is it possible to make a templated PDF file and then send it to an API, either the document generation api or another Adobe api and have the templated PDF filled in with the data?
We're using the Embed API to display PDFs. The files are hosted on Dropbox and displayed on a Squarespace website. Things worked great until recently when randomly the files will stay at "Loading 0%". I'm not sure what to do since the developer who set up the code is no longer available. I have a test link you can try and also the code we use. Keep in mind that sometimes the files open just fine, but other times they stay at 0%. Does anyone know what we can do to fix the issue?Test link: https://www.fortebarprep.com/test-blogClick on any of the titles in the blog to go to an embed page. Here is the code. The only difference on each page is the dropbox file link. <style type="text/css" media="print"> body { visibility: hidden; display: none; } </style> <div id="embeddedView" style="width: 100%;"></div> <script src="https://documentcloud.adobe.com/view-sdk/main.js"></script> <script type="text/javascript"> const dropbox
I have a single page form that converts to PDF, And displays the single page as two separate half pages in acrobat. I have poured over the HTML code and CSS, and there are no page breaks anywhere. The single page form should be displayed with 8.5 x 11 inch sizing. It's being displayed as 2 pages sized 8.5 x 7 inches on each page.
I had try registerCallback , but it only can catch event after open link:adobeDCView.registerCallback(/* Type of call back */AdobeDC.View.Enum.CallbackType.EVENT_LISTENER,/* call back function */function(event) {switch(event.type) {case "HYPERLINK_OPEN":console.log("Clicked on hyperlink "+event.data.fileName);console.log(event);break;}},{enablePDFAnalytics: true,});}); How can to catch event before open link?
Hello, I am integrating the PDF Embed API into our project. What I am seeing is that after I load the viewer, I can see the PDF fine, but every sibling html element after the container is getting stripped out. For example, say I have this:<div class="some-content"> <div id="my-embed-id" class="adobe-dc-view"> </div> <p>Some content here</p> <p>More content here</p> </div> Once I render a AdobeDC.View and pass the in the id "my-embed-id", the pdf shows but the 2 paragraphs after the embed div get removed from the DOM. Any suggestions? Thank you!
I am using the PDF embed api to embed a number of PDF files using the inline embed mode While it generally works very well, if the pdf I am embedding is very tall, it no longer expands to fit the width of the page (it will expand only to a particular size, after which it just remains centered). for an example, see:https://tcm.school/herbs/resolve_exterior_herbs_testing.html there are 4 pdfs embedded. If the window is small enough, they all fit the width of the screen, but if the window size is increased, they end up all different sizes. Is there a way to force them to all expand to the width of the container they are in?
Hello. I just wanted to share a fun little web app I made with the adobe pdf API. It's a sheet music repertoire that loads new pdf files with the click of a new song. It was a bit of a struggle to figure out the code, so I hope it might help someone else! Here's the site: https://www.clairmusic.com/apolloBellow is the code! <!--Adobe PDF reader --><script src="https://documentcloud.adobe.com/view-sdk/viewer.js"></script><script type="text/javascript">function renderPdf(fileName, url) {console.log(fileName, url);var adobeDCView = new AdobeDC.View({ clientId: "<ID>", divId: "adobe-dc-view" });adobeDCView.previewFile({content: { location: { url }},metaData: { fileName }}, {embedMode:"FULL_WINDOW",focusOnRendering: false,defaultViewMode: "FIT_WIDTH",enableSearchAPIs: false,showZoomControl: false,});}$('.piecenamecontainer').on('click', function () {renderPdf($(this).find('.piecename').text(), $(this).find('.pdf').text()) });doc
Hi All, I have a strange error, almost all PDF files open succesfully using the embed PDF API. However, some files throw an error (the An Error encoutered popup) Downloading (right-click) the file in the window works, so the viewer receives the PDF file. If I inspect the console errors, there is one error: [Error] Unhandled Promise Rejection: Error: getMetadata request failedpromiseEmptyOnRejected (bootstrap.js:2:775697)promiseReactionJob The PDF opens just fine on my mac, PC or phone. The only difference seems to be the file generating the error has no author info in the metadata. Could this be a bug in the API?
Hi How to Include Image while downloading as pdf using Adobe PDF Services API.I'm using .NET SDK.Can someone help me to overcome this ? I'm getting image as empty eventhough its present in the repective folder.
I am already a user of Adobe Acrobat Standard 2020, please usgget me how to get credential to use in power automate.
Hi, Adobe Document Services API for converting PDF files to Microsoft Word is really great. The only problem with the document conversion is that the document Heading levels (Heading 1, Heading 2, Heading 3, Heading 4, Heading 5, Heading 6) are skipped. Deriving HTML from PDF – PDF Association can somthing of this sort be implemented when converting from PDF to Microsoft Word or HTML.
I am trying to get a PDF extracted with PDF Extract API .. but it gives this error: adobe.pdfservices.operation.exception.exceptions.ServiceApiException: description =BAD_PDF - Unable to extract content. File is corrupted, malformed or an empty PDF; Even though I am able to open the pdf, not sure what is going wrong.
Hello,Our organization is intersted in the Adobe PDF Services API in PowerAutomate that allows to use a .docx word tempalte and JSON data passed in Power Automate to create and save a PDF document, in a SharePoint document library for example.We have 2 questions: Where is the data stored for the Adobe PDF Services API? I have contacted Chat support and tried to find this information. Our org has sensitive data that would need to be passed through your API and we need to know EXACTLY how and where you store data.We would like to add a Digital Signature block in the PDF that is generated. We can add in a word template a Sign Field, but that get's ignored by the API when the PDF document is created and saved. Is there a way to automatically add the digital signature field that needs to be completed in the document at our desired location?Please let me know.Ben
Hi, I'm trying to convert a local HTML file to a PDF using the htmlToPDF API. I'm able to hit the API successfully using a CURL, but I'm running into a weird error when sending my request using the python.requests library:{"cpf:status":{"completed":true,"type":"Invalid papi Engine","title":"Invalid engines input for papi request ","status":400,"report":"{\"error_code\":\"INVALID_REQUEST\"}"}}Is there a successful POST implementation with a file I can mimic to help diagnose the issue? Here's my full code: import requests import json BEARER="Bearer {{Token}}" API_KEY = "{{client_secret}}" requestUri = 'https://cpf-ue1.adobe.io/ops/:create?respondWith%3D%7B%22reltype%22%3A%20%22http%3A%2F%2Fns.adobe.com%2Frel%2Fprimary%22%7D' headers = { 'Authorization': BEARER, 'x-api-key' : API_KEY, 'Accept': "application/json, text/plain, */*", 'Prefer': "respond-async,wait=0" } def makeRequest(inputHtmlFilePath, outputPdfFilePath): contentAnalyzerRequests =
Hello everyone! I'm trying to REMOVE focus from my pdf viewer on render. I thought it would be a simple line of code "focusOnRendering: false"... but that has not seemed to work. The code below re-renders the pdf when an object that contains a pdf <name> and <URL> is clicked. I would appreciate the help! 🙏 <script src="https://documentcloud.adobe.com/view-sdk/viewer.js"></script><script type="text/javascript">function renderPdf(fileName, url) {var adobeDCView = new AdobeDC.View({ clientId: "<id>", divId: "adobe-dc-view" });adobeDCView.previewFile({ content: { location: { url }}, metaData: { fileName }}, {embedMode: "FULL_WINDOW",defaultViewMode: "FIT_WIDTH",focusOnRendering: false,enableSearchAPIs: false,showZoomControl: false,enableLinearization: true,enableSearchAPIs: false,showBookmarks: false,});}$('.piecenamecontainer').on('click', function () {renderPdf($(this).find('.piecename').text(), $(this).find('.p
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.