How to save file without dialog for Adobe DC SDK

Dec 14, 2020

Copy link to clipboard

Copied

I want to save opened file by myself, there is AVAppSaveDialogSEL API. But I want to save file without dialog. Any API can be used.

TOPICS
Acrobat SDK and JavaScript

Views

48

Likes

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

How to save file without dialog for Adobe DC SDK

Dec 14, 2020

Copy link to clipboard

Copied

I want to save opened file by myself, there is AVAppSaveDialogSEL API. But I want to save file without dialog. Any API can be used.

TOPICS
Acrobat SDK and JavaScript

Views

49

Likes

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
Dec 14, 2020 0
Dec 15, 2020

Copy link to clipboard

Copied

PDDocSave, so long as you aren't in Reader, and as long as Protected Mode isn't enabled.

Likes

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
Reply
Loading...
Dec 15, 2020 0
Dec 15, 2020

Copy link to clipboard

Copied

unfortunately, I am using reader and it needs sandbox and protected mode is enabled. do you have other solution?

Likes

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
Reply
Loading...
Dec 15, 2020 0
Dec 15, 2020

Copy link to clipboard

Copied

So far as I know, saving a file from a Reader plug-in is forbidden. But it may depend on the Reader plug-in license you negotiated. 

Likes

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
Reply
Loading...
Dec 15, 2020 0
Dec 16, 2020

Copy link to clipboard

Copied

I am in protected mode. I am using AVDocDoSaveAsWithParams(aDoc, &AVDocSaveParams) and AvDocDoSave(avDoc) API. AvDocDoSave will show dialog when I call this API. When I set struct AVDocSaveParams as follows:

AVDocSaveParams.size = sizeof(AVDocSaveParams);

AVDocSaveParams.useSaveDialog = false;

AVDocSaveParams.filterID = NULL;

AVDocSaveParams.useDefaults = true;

AVDocSaveParams.dontAllowConversions = true;

It will also show the dialog. If I comment "AVDocSaveParams.size = sizeof(AVDocSaveParams)", it won't show dialog, but can not save it. 

Anyone can give me confirmed answer?

 

 

Likes

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
Reply
Loading...
Dec 16, 2020 0
Dec 17, 2020

Copy link to clipboard

Copied

Protected mode is designed to forbid saving any file unless the user has chosen it in a SAVE AS prompt. This is a major part of the design and function of Protected Mode, and cannot be bypassed. 

Likes

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
Reply
Loading...
Dec 17, 2020 0