Shubhanshu Dixit
Adobe Employee
Shubhanshu Dixit
Adobe Employee
Activity
Adobe Employee
in Acrobat Services API Discussions
‎Feb 09, 2022
08:21 AM
1 Upvote
‎Feb 09, 2022
08:21 AM
1 Upvote
Hi @Diego22947987x2wd , Thanks for using PDF Embed API. You are using the "IN_LINE" embed mode, annotation tools are not supported in this embed mode. I believe you are misinterpreting annotation tools with page controls which is a non-configurable thing in "IN_LINE" embed mode. I hope this clarifies your doubt.
... View more
‎Oct 11, 2021
08:39 AM
Issue has been fixed. 😊
... View more
‎Oct 11, 2021
08:37 AM
Hi, Isuue has been fixed now. Thanks for the patience.
... View more
‎Oct 11, 2021
08:35 AM
Hi Saravana, Issue has been fixed now. Thanks for the patience
... View more
Adobe Employee
in Acrobat Services API Discussions
‎Oct 11, 2021
08:33 AM
1 Upvote
‎Oct 11, 2021
08:33 AM
1 Upvote
Hello everyone,
The issue has been fixed now. We want to apologize and understand how frustrating this delay must be.
Thanks for the patience
... View more
‎Jun 21, 2021
03:12 PM
The correct way would be something like below. This will also take care of the part in case your script loading takes time.
function previewFile(localPDFUrl, pdfFileName, currSessionID, currAuthToken) {
if (AdobeDC && AdobeDC.View) {
previewFromPDFEmbedAPI(localPDFUrl, pdfFileName, currSessionID, currAuthToken);
} else {
document.addEventListener("adobe_dc_view_sdk.ready", function () {
previewFromPDFEmbedAPI(localPDFUrl, pdfFileName, currSessionID, currAuthToken);
});
}
}
function previewFromPDFEmbedAPI(localPDFUrl, pdfFileName, currSessionID, currAuthToken) {
/* The PDF embed mode option here */
const viewerConfig = {
embedMode: "FULL_WINDOW",
defaultViewMode: "FIT_PAGE", //FIT_WIDTH
showLeftHandPanel: true,
showAnnotationTools: true,
showDownloadPDF: true,
showPrintPDF: true,
showPageControls: true,
showDisabledSaveButton: true,
downloadWithCredentials: true
};
/* Initialize the AdobeDC View object */
var adobeDCView = new AdobeDC.View({
/* Registered client id */
clientId: "yourCliendID",
/* 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: {
url: localPDFUrl,
headers: [
{
key: 'ASP.NET_SessionId',
value: currSessionID
},
{
key: '.ASPXAUTH',
value: currAuthToken
},
/* Pass meta data of file */
metaData: {
/* file name */
fileName: pdfFileName
}
}, viewerConfig);
}
... View more
Adobe Employee
in Acrobat Services API Discussions
‎Jun 21, 2021
02:45 PM
2 Upvotes
‎Jun 21, 2021
02:45 PM
2 Upvotes
Hi @Bill5E5D Thanks for using PDF Embed API. There is a small typo in your snippet while providing the URL of the file. It should be 'url' instead of 'URL' in content's location. I hope it will work after that.
... View more
‎Jun 21, 2021
12:42 AM
Hi, Thanks for using PDF Embed API. As you might have found in the documentation, you need to pass the downloadable URL for your PDF file in the code snippet. The URL you are passing currently is not the PDF URL, it's Application URL of documentcloud.adobe. Please host your file and provide the downloadable URL to get this working for you.
... View more
Adobe Employee
in Acrobat Services API Discussions
‎May 19, 2021
08:40 AM
2 Upvotes
‎May 19, 2021
08:40 AM
2 Upvotes
Thanks for checking. We are actively working on this. Again, we are incredibly sorry for the inconvenience this has caused and will update you as soon as we have a resolution.
... View more
Adobe Employee
in Acrobat Services API Discussions
‎Apr 23, 2021
12:48 AM
2 Upvotes
‎Apr 23, 2021
12:48 AM
2 Upvotes
Sorry for the inconvenience caused. We are yet to resolve this issue. We are targeting to fix it soon.
... View more
‎Apr 19, 2021
07:44 AM
Hi Antonio, We are yet to fix this issue. I am not sure whether the screenshot (attached by you) has PDF Embed API as its PDF Viewer.
... View more
Adobe Employee
in Acrobat Services API Discussions
‎Mar 25, 2021
07:44 AM
1 Upvote
‎Mar 25, 2021
07:44 AM
1 Upvote
Hi, Thanks for trying out PDF Embed API. Ideally, it should work by creating a new object of AdobeDC.View for each of the PDFs. It would be great for us to debug if you can share your snippet or website.
... View more
‎Feb 26, 2021
12:43 AM
Thanks for using PDF Embed API. As suggested in the documentation, you have to write either of the return statement based on your scenario.
... View more
‎Feb 18, 2021
11:36 PM
Thanks for using PDF Embed API. Your code snippet is overriding the previous event listener. To handle such scenarios, you can do something like that
adobeDCView.registerCallback(
AdobeDC.View.Enum.CallbackType.EVENT_LISTENER,
function (event) {
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));
});
});
} else if (event.type === AdobeDC.View.Enum.PDFAnalyticsEvents.TEXT_COPY) {
var copiedText = event.data.copiedText;
var frame = document.querySelector('#propIFrame');
if (frame && frame.contentWindow) {
var selectedField = frame.contentWindow.lastFocusedField;
if (selectedField && /(input|select|textarea)/i.test(selectedField.nodeName)) {
selectedField.value = copiedText;
}
}
}
}, {
enableFilePreviewEvents: true,
enablePDFAnalytics: true
}
);
... View more
‎Feb 07, 2021
10:44 PM
Hi, Thanks for using PDF Embed API. Please look for setConfig API under section APIs to control UI configurations in the documentation.
... View more
‎Jan 25, 2021
01:12 AM
Thanks for using PDF Embed API. If you are selecting the text in the viewer, you will receive an event (PREVIEW_SELECTION_END), which might help your cause. Please visit https://www.adobe.io/apis/documentcloud/dcsdk/docs.html?view=view. You will get the required information under section Basic events.
... View more
‎Dec 23, 2020
06:44 AM
We would like to apologize for the inconvenience. Ideally, it should work after registering the GET_USER_PROFILE_API callback in the documented way https://www.adobe.com/devnet-docs/dcsdk_io/viewSDK/howtos_ui.html#user-profiles. Could you please confirm if you are following the same? Also, if we can get the code snippet (configurations) you used with PDF Embed API for your website.
... View more
‎Dec 07, 2020
05:10 AM
I am not sure whether you are following the documentation or not. You need not to have any annotation manager for your use-case. As described in the comment of saveApiHandler itself that /* Dummy implementation of Save API, replace with your business logic */, So, you have to write the code for uploading the content of the file in your desired location (where the file is residing currently).
... View more
‎Dec 07, 2020
02:18 AM
You need to write your file update implementation in the saveApiHandler, in which you can use the content buffer provided as an argument to update the file at the desired location.
... View more
‎Dec 07, 2020
02:02 AM
Can you provide us the snippet of the Save Callback you have registered?
... View more
‎Dec 06, 2020
11:56 PM
Please refer to this documentation https://www.adobe.com/devnet-docs/dcsdk_io/viewSDK/howtos_ui.html#save-a-pdf
... View more
‎Dec 06, 2020
11:52 PM
As described in the documentation, you need to register a callback for listening events from PDF Embed API. I have drafted a sample for you.
const eventOptions = {
listenOn: [ AdobeDC.View.Enum.Events.PDF_VIEWER_CLOSE ],
}
adobeDCView.registerCallback(
AdobeDC.View.Enum.CallbackType.EVENT_LISTENER,
function(event) {
// Do the needful here, redirect to your desired webpage
}, eventOptions
);
Hope this helps your cause.
... View more
Adobe Employee
in Acrobat Services API Discussions
‎Dec 03, 2020
10:58 PM
1 Upvote
‎Dec 03, 2020
10:58 PM
1 Upvote
Thanks, Dhruv for the information, we are experiencing this problem with Page Level Annotation for some PDFs. We are actively working on the fix and will be rolled out soon. Appreciate your patience on this.
... View more
‎Dec 03, 2020
12:35 PM
Thanks for using PDF Embed API. Currently, it looks like a limitation of PDF Embed API. We will consider this suggestion in our future enhancements.
... View more
‎Dec 03, 2020
12:25 PM
Thanks for your suggestion, we will give it every consideration. Did you see a significant time gap in blurred/blank to the sharp image? If so, could you please help us provide a sample PDF as well?
... View more
‎Dec 03, 2020
12:10 PM
Thanks for using PDF Embed API, you can listen for the event PDF_VIEWER_CLOSE and do the needful on your own. To know more about this please see https://www.adobe.com/devnet-docs/dcsdk_io/viewSDK/howtodata.html#basic-events
... View more
Adobe Employee
in Acrobat Services API Discussions
‎Dec 03, 2020
12:00 PM
1 Upvote
‎Dec 03, 2020
12:00 PM
1 Upvote
You can check the PDF Embed API initialization in the following way as well
if (window.AdobeDC) {
previewFile();
} else {
/* Wait for Adobe Document Services PDF Embed API to be ready */
document.addEventListener("adobe_dc_view_sdk.ready", () => {
previewFile();
});
}
... View more
Adobe Employee
in Acrobat Services API Discussions
‎Dec 03, 2020
11:58 AM
1 Upvote
‎Dec 03, 2020
11:58 AM
1 Upvote
You can check the PDF Embed API initialization in the following way as well
if (window.AdobeDC) {
previewFile();
} else {
/* Wait for Adobe Document Services PDF Embed API to be ready */
document.addEventListener("adobe_dc_view_sdk.ready", () => {
previewFile();
});
}
Hope this will help your cause.
... View more
‎Dec 03, 2020
11:42 AM
Thanks for using PDF Embed API. We are sorry for the inconvenience, could you please help us with the following information? As tangyun said, "It was working for some time. then suddenly this error shows up.", are you trying to add the annotation to the same PDF from which annotation data was generated. Also, did annotation gets updated in between? And for Dhruv5CCF query, is this happening each time for you, or for any particular PDF or annotation type or position? Looking forward to helping you out.
... View more
‎Dec 03, 2020
11:25 AM
Thanks for using PDF Embed API. Currently, it is not possible to change the thickness of the drawing tool programmatically. But it is possible to store the user's color preferences for each annotation tool. Same are stored with below key in object return/expected by SET_USER_SETTING_API and GET_USER_SETTING_API
"previewAnnotationColorMap": { "freetext": "#16EC83", "note": "#16EC83", "shape": "#16EC83", "highlight": "#16EC83", "underline": "#16EC83", "strikeout": "#16EC83" }
The reason, it is not reflecting in your settings object because the user did not change any annotation's color from the default ones.
... View more