Copy link to clipboard
Copied
i am trying to set the title for the dc window by using the following code in c++.
void PDFUtils::SetDCWindowTitle(const CString& title)
{
ASTextHolder text(title);
AVDoc doc=AVAppGetActiveDoc();
if(doc!=NULL)
{
PDDoc pdDoc = PDFUtils::GetPDDoc(doc);
PDDocSetInfoAsASText(pdDoc,ASTextHolder("Title"),text);
AVWindow window = AVDocGetAVWindow(doc);
AVWindowSetTitle(window, text); // not working for now for DC version
}
}
but it's not working for DC, where as it is working fine for adobe 11.
i need to set the title for the window in DC . Please help for this.
Message was edited by: Jyothi Potti
Copy link to clipboard
Copied
[Question moved to the Acrobat SDK forum]
Copy link to clipboard
Copied
In DC – now that there can be multiple tabs open in the same window, AVWindowSetTitle() is really just setting the tab’s title. There is no way to set the title of the main/parent window.
Copy link to clipboard
Copied
But that function is not working for dc to set the title for tab even could you please me for this
Copy link to clipboard
Copied
AFAICT from reviewing the code in Acrobat/Reader, it should work just fine.
I would recommend you consider filing a formal bug report with Adobe including the code you are using, version of Acrobat DC, subscription vs. perpetual, OS platform, etc. (and do make sure you are using the current version before submitting)
Copy link to clipboard
Copied
Acrobat DC: current version of DC
OS Platform: Windows 7 Professional 64 bit
Code we are using for setting the title:
void PDFUtils::SetDCWindowTitle(const CString& title)
{
ASTextHolder text(title);
AVDoc doc=AVAppGetActiveDoc();
if(doc!=NULL)
{
PDDoc pdDoc = PDFUtils::GetPDDoc(doc);
PDDocSetInfoAsASText(pdDoc,ASTextHolder("Title"),text);
AVWindow window = AVDocGetAVWindow(doc);
AVWindowSetTitle(window, text); // not working for now for DC version
}
}
The same piece of code we are using for another versions of adobe,
but when it comes into the DC its not working even to set the title for the tab.
There is a requirement to set the title for tab when click on the tab the same thing reflecting to the window also.
Like when we modify the properties of the document like ShowTitle --> Document Title manually, in the IntialView Settings.
right click on the pdf document in DC --> go to InitialView --> modify show title as DocumentTitle.
the same thing we need to set the title for the window & tab programatically.
If not possible is there any other way to set the title for tab at least in DC