Quantcast
Viewing all articles
Browse latest Browse all 150094

Re: 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 ?

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


Viewing all articles
Browse latest Browse all 150094

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>