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

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 ?

Guest
Jul 21, 2017 Jul 21, 2017

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

TOPICS
Acrobat SDK and JavaScript

Views

686

Translate

Translate

Report

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
Community Expert ,
Jul 21, 2017 Jul 21, 2017

Copy link to clipboard

Copied

[Question moved to the Acrobat SDK forum]

Votes

Translate

Translate

Report

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 ,
Jul 21, 2017 Jul 21, 2017

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.

Votes

Translate

Translate

Report

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
Guest
Jul 21, 2017 Jul 21, 2017

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

Votes

Translate

Translate

Report

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 ,
Jul 21, 2017 Jul 21, 2017

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)

Votes

Translate

Translate

Report

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
Guest
Jul 24, 2017 Jul 24, 2017

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

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