converting "new.file.name" to ASText results in "new.file"

New Here ,
Apr 30, 2018

Copy link to clipboard

Copied

ASTextSetEncoded(astxt, "new.file.name", (ASHostEncoding)PDGetHostEncoding());

astxt becomes "new.file" instead of "new.file.name", i.e. "name" is lost.

How do I resolve this?

TOPICS
Acrobat SDK and JavaScript

Views

208

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

converting "new.file.name" to ASText results in "new.file"

New Here ,
Apr 30, 2018

Copy link to clipboard

Copied

ASTextSetEncoded(astxt, "new.file.name", (ASHostEncoding)PDGetHostEncoding());

astxt becomes "new.file" instead of "new.file.name", i.e. "name" is lost.

How do I resolve this?

TOPICS
Acrobat SDK and JavaScript

Views

209

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
Apr 30, 2018 0
Adobe Employee ,
Apr 30, 2018

Copy link to clipboard

Copied

Are you sure?

Can you post the entire snippet of code that you are using to verify this?

What version of Acrobat and/or PDFLibrary?

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...
Apr 30, 2018 0
New Here ,
Apr 30, 2018

Copy link to clipboard

Copied

static ACCB1 ASBool ACCB2 SaveDialog(AVOpenSaveDialogParams dialogParams, ASFileSys* outFileSys, ASPathName* outASPathName,

AVFilterIndex* ioChosenFilterIndex)

{

ASTextSetEncoded(dialogParams->initialFileName, "new.file.name", (ASHostEncoding)PDGetHostEncoding());

//dialogParams->initialFileName = CreateASTextFromString(sCurrentTitle);

return CALL_REPLACED_PROC(gAcroViewHFT, AVAppSaveDialogSEL, cbSaveDialog)(dialogParams, outFileSys, outASPathName, ioChosenFilterIndex);

}

The name in the save dialog becomes "new.file" instead of "new.file.name"

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...
Apr 30, 2018 0
Adobe Employee ,
Apr 30, 2018

Copy link to clipboard

Copied

Ah – see, that’s a different issue! The problem isn’t the ASTextSetEncoded() call, but instead the Save dialog not allowing for multiple extensions.

Is this happening on Mac or Win or both? What version of Acrobat? (so I can more easily investigate it)

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...
Apr 30, 2018 0
New Here ,
May 01, 2018

Copy link to clipboard

Copied

This is on windows. But this happens only with my plugin, if I disable the plugin the issue is gone

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...
May 01, 2018 0
Most Valuable Participant ,
May 01, 2018

Copy link to clipboard

Copied

Please answer all the questions. What version of Acrobat? (Exactly including dots)

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...
May 01, 2018 0
New Here ,
May 01, 2018

Copy link to clipboard

Copied

I use Adobe Acrobat Reader DC, Version 18.011.20038

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...
May 01, 2018 0
Most Valuable Participant ,
May 01, 2018

Copy link to clipboard

Copied

What version of Acrobat Pro/Acrobat Standard do you test with?

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...
May 01, 2018 0
New Here ,
May 01, 2018

Copy link to clipboard

Copied

I have only Adobe Acrobat Reader installed

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...
May 01, 2018 0
Most Valuable Participant ,
May 01, 2018

Copy link to clipboard

Copied

developers need Acrobat.

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...
May 01, 2018 0