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?
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?
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"
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)
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
Copy link to clipboard
Copied
Please answer all the questions. What version of Acrobat? (Exactly including dots)
Copy link to clipboard
Copied
I use Adobe Acrobat Reader DC, Version 18.011.20038
Copy link to clipboard
Copied
What version of Acrobat Pro/Acrobat Standard do you test with?
Copy link to clipboard
Copied
I have only Adobe Acrobat Reader installed
Copy link to clipboard
Copied
developers need Acrobat.