Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- document.addEventListener("adobe_dc_view_sdk.ready", function () {
- /* Initialize the AdobeDC View object */
- adobeDCView = new AdobeDC.View({
- /* Pass your registered client id */
- clientId: "",
- /* Pass the div id in which PDF should be rendered */
- divId: "adobe-dc-view",
- });
- adobeDCView.registerCallback(
- AdobeDC.View.Enum.CallbackType.GET_USER_PROFILE_API, function () {
- const pr = {
- userProfile: {
- name: "John My man",
- firstName: "John",
- lastName: "Doe",
- email: "jdoe@abc.com",
- }
- };
- return new Promise((resolve, reject) => {
- resolve({
- code: AdobeDC.View.Enum.ApiResponseCode.SUCCESS,
- data: pr
- })
- })
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement