Skip to main content
July 21, 2017
Question

I am using Acrobat DC SDK not able to set the document title by using AVWindowSetTitle(window, text); in dc is there any way to set the document title programatically in DC ?

  • July 21, 2017
  • 2 replies
  • 1094 views

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

This topic has been closed for replies.

2 replies

lrosenth
Adobe Employee
Adobe Employee
July 21, 2017

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.

July 21, 2017

But that function is not working for dc to set the title for tab even could you please me for this

lrosenth
Adobe Employee
Adobe Employee
July 21, 2017

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)

try67
Community Expert
July 21, 2017

[Question moved to the Acrobat SDK forum]