• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

PDF Embed API - Call Print and Save Function Programmatically

New Here ,
May 09, 2021 May 09, 2021

Copy link to clipboard

Copied

I want to use the Save and Print functions in the API externally to the iFrame. Is is there a function in

`AdobeDC.View` that would allow me to call these features programmatically?

Views

539

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 10, 2021 May 10, 2021

Copy link to clipboard

Copied

Currently, the print sand save functions cannot be triggered programmatically.

However, you can set up the save functionality to autosave at a given interval. Additionally, you can turn on "focus polling" so that a save occurs when the viewer loses focus.

 

With focus polling, adding your own save button is unnecessary since simply by moving the focus to your button would cause the save to occur. What you might want to do instead is add your "Save" button but make it do something with the saved PDF rather than just update the content in the viewer.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 31, 2022 Mar 31, 2022

Copy link to clipboard

Copied

Hi Joel

 

This doesn't work actually. Even with enableFocusPolling=true, it takes aroud 2 seconds after the annotation before SAVE_API is triggered.

 

This means that our fake-Save button does not have the latest copy of the PDF file.

 

  1. Is there a way to trigger SAVE programmatically?
  2. Is there a way to programmatically check if any changes are unsaved?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 01, 2022 Apr 01, 2022

Copy link to clipboard

Copied

LATEST

Hi Joel

I have created this CodePen to illustrate this point: https://codepen.io/vmit/pen/JjMraxg

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources