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 ?

New Here ,
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

339

Likes

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

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 ?

New Here ,
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

340

Likes

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
Jul 21, 2017 0
Most Valuable Participant ,
Jul 21, 2017

Copy link to clipboard

Copied

[Question moved to the Acrobat SDK forum]

Likes

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
Reply
Loading...
Jul 21, 2017 0
Adobe Employee ,
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.

Likes

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
Reply
Loading...
Jul 21, 2017 1
New Here ,
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

Likes

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
Reply
Loading...
Jul 21, 2017 0
Adobe Employee ,
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)

Likes

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
Reply
Loading...
Jul 21, 2017 0
New Here ,
Jul 24, 2017

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

Likes

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
Reply
Loading...
Jul 24, 2017 0