Skip to main content
monikac35319256
Participant
November 24, 2016
Question

Not able to set the title using AVWindowSetTitle in Adobe DC

  • November 24, 2016
  • 3 replies
  • 1034 views

Hello Team,

We have a website where we search, download the documents and edit them. This document is saved with in a unique id in the local machine and we are internally setting a custom title in the code depending on the search criteria the user entered.So, when the document is opened in Acrobat Reader, it shows the title as the name given by us.

We are using the below code for setting the title of the window.

AVWindow window = AVDocGetAVWindow(doc);

AVWindowSetTitle(window, text);

But where as in DC, I'm not able to set the title using the above code.

How do we set a custom title to each tab and to the window ?

Can someone help me on this.

Thanks in advance.

This topic has been closed for replies.

3 replies

Dan_Korn
Inspiring
December 15, 2016

According to the documentation:

AV_Layer.AVWindow (Acrobat)

"This method cannot be used to set the title of the window in which the Acrobat viewer normally opens a PDF file; it can only be used to set the title of an AVWindow created by a client. To set the title of a window in which the Acrobat viewer opens a PDF file, you must replace AVDocOpenFromASFileWithParams() and pass the window title in tempTitle."

That's the PDFL/Acrobat 9 doc, but I don't think that the way the function works has fundamentally changed in DC.

monikac35319256
Participant
December 14, 2016

This is using C++

ReinhardF
Participating Frequently
December 14, 2016

With scripting tools via IAC it would be easy for me.

But I've no knowledge of C/C++ and Acrobat plug-ins.

Sorry

ReinhardF
Participating Frequently
December 13, 2016

...  I'm not able to set the title using the above code. ....

What should that be for a code, VBA VBS, JS, ....?

I've never seen code where a variable "AVWindow window" contents a space?

So you may first tell us which kind of code (vba, vbs, js, ...) you want to use.

Legend
December 13, 2016

This is C or C++ using the plug-in API.