Skip to main content
davits9352137
Participant
April 30, 2018
Question

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

  • April 30, 2018
  • 3 replies
  • 918 views

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?

This topic has been closed for replies.

3 replies

Legend
May 1, 2018

developers need Acrobat.

Legend
May 1, 2018

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

davits9352137
Participant
May 1, 2018

I have only Adobe Acrobat Reader installed

lrosenth
Adobe Employee
Adobe Employee
April 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?

davits9352137
Participant
April 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"

lrosenth
Adobe Employee
Adobe Employee
April 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)