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

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

New Here ,
Apr 30, 2018 Apr 30, 2018

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
820
Translate
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

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?

Translate
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

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"

Translate
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

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)

Translate
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

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

Translate
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

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

Translate
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

I use Adobe Acrobat Reader DC, Version 18.011.20038

Translate
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

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

Translate
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

I have only Adobe Acrobat Reader installed

Translate
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
LATEST

developers need Acrobat.

Translate
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