Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Setting the Title and Author for the output PDF file
Started by cricket at 12-27-2007 9:37. Topic has 5 replies.

Print Search « Previous Thread Next Thread »
  12-27-2007, 9:37
cricket is not online. Last active: 12/19/2007 4:14:04 PM cricket

Top 500 Posts
Joined on 06-22-2007
Posts 11
Setting the Title and Author for the output PDF file
Reply Quote
I am using ePrint API 4.5 and calling the methods "PutTitle" and "PutAuthor" available in "ILEADPDFGeneralOptions".
However, the output PDF file does not seem to take my arguments!

My code somewhat looks like this:

pGlobalSettings()->GetPDFGeneralOptions()->PutAuthor("Author");
pGlobalSettings()->GetPDFGeneralOptions()->PutTitle("Title");

While the rest of the methods SaveDirectory, SaveFileName, SaveFileFormat, etc seem to work just fine,
the methods from
"ILEADPDFGeneralOptions" and "ILEADGlobalPrinterOptions" aren't working.

So, is there a sequence we need to follow to call/use these methods? Are there any examples? If any, could you give us a link (URL)?

Thanks in advance.


   Report 
  12-27-2007, 12:41
GregR is not online. Last active: 8/29/2008 2:25:56 PM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,542
Re: Setting the Title and Author for the output PDF file
Reply Quote
Make sure that you are calling the PrnSetUserSettings function after you set any property.  For an example, please see the documentation for the ILEADGlobalSettings.PDFGeneralOptions property.

Greg Ross
LEADTOOLS Technical Support
   Report 
  12-27-2007, 13:32
cricket is not online. Last active: 12/19/2007 4:14:04 PM cricket

Top 500 Posts
Joined on 06-22-2007
Posts 11
Re: Setting the Title and Author for the output PDF file
Reply Quote
 GregR wrote:
Make sure that you are calling the PrnSetUserSettings function after you set any property.  For an example, please see the documentation for the ILEADGlobalSettings.PDFGeneralOptions property.


Thanks for the prompt reply Greg.
Unfortunately, I couldn't find the documentation. Is the documentation available for download? If so, any pointers.


Thanks.



   Report 
  12-27-2007, 14:08
GregR is not online. Last active: 8/29/2008 2:25:56 PM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,542
Re: Setting the Title and Author for the output PDF file
Reply Quote
We don't have the ePrint 4 documentation online.  The help file I'm referring to is in the API COM help file and it's file name is Ltprncomn.chm.  If this did not get installed when you installed ePrint IV API, then please send an email to support@leadtools.com, reference this post and we'll send you the help file (we can't post it on the public forum).

Greg Ross
LEADTOOLS Technical Support
   Report 
  12-27-2007, 14:28
cricket is not online. Last active: 12/19/2007 4:14:04 PM cricket

Top 500 Posts
Joined on 06-22-2007
Posts 11
Re: Setting the Title and Author for the output PDF file
Reply Quote
 GregR wrote:
Make sure that you are calling the PrnSetUserSettings function after you set any property.  For an example, please see the documentation for the ILEADGlobalSettings.PDFGeneralOptions property.


I am calling the PrnSetUserSettings and still not getting the desired "Title" and "Author"!!
For time being, could you cut and paste the documentation here for reference.

Thanks.


   Report 
  12-27-2007, 14:42
GregR is not online. Last active: 8/29/2008 2:25:56 PM GregR



Top 10 Posts
Joined on 05-31-2006
In House
Posts 1,542
Re: Setting the Title and Author for the output PDF file
Reply Quote
Below is the C++ example from the help file.

PDFGeneralOptions Example for Visual C++

m_pLEADGlobalSettings->PDFGeneralOptions->Version = PDF_VER_AUTO;
m_pLEADGlobalSettings->PDFGeneralOptions->Usage = PDF_USE_TITLE | PDF_USE_SUBJECT | PDF_USE_AUTHOR | PDF_USE_KEYWORDS;
m_pLEADGlobalSettings->PDFGeneralOptions->Title = "EPRINT";
m_pLEADGlobalSettings->PDFGeneralOptions->Subject = "Test 1";
m_pLEADGlobalSettings->PDFGeneralOptions->Author = "Lead";
m_pLEADGlobalSettings->PDFGeneralOptions->KeyWords ="Test2";
m_pLEADGlobalSettings->PrnSetUserSettings();

If you continue to have problems, then there might be a bug.  Please send an email to support@leadtools.com in order to get the download instructions for the last build.  For verification purposes, I need you to include the following information:
 
1. The company you work for
2. The LEADTOOLS serial number(s) you own
3. The name(s) of the developer(s) using the serial number

Greg Ross
LEADTOOLS Technical Support
   Report 
Post
LEAD Support Fo... » Developer » ePrint API » Setting the Title and Author for the output PDF file

Powered by Community Server, by Telligent Systems