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

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

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

236

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
community guidelines
Adobe Employee ,
Apr 30, 2018 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
community guidelines
New Here ,
Apr 30, 2018 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
community guidelines
Adobe Employee ,
Apr 30, 2018 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
community guidelines
New Here ,
May 01, 2018 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
community guidelines
LEGEND ,
May 01, 2018 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
community guidelines
New Here ,
May 01, 2018 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
community guidelines
LEGEND ,
May 01, 2018 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
community guidelines
New Here ,
May 01, 2018 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
community guidelines
LEGEND ,
May 01, 2018 May 01, 2018

Copy link to clipboard

Copied

LATEST

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
community guidelines