pdfSetInfoW - Update info items in a PDF file

<< Click to Display Table of Contents >>

Navigation:  Direct Calls to DLL >

pdfSetInfoW - Update info items in a PDF file

 

Utility function to update info items in a PDF file. (new in WPViewPDF Version 5 PLUS)

 

Declaration:

 

Pascal

 

function pdfSetInfoW(

 filename   : PWideChar;

 newfilename: PWideChar;

 infoitems  : PWideChar;

 password   : PWideChar;

 licname, lickey: PWideChar; liccode : Cardinal;

 optionstr  : PWideChar;

 option     : Integer) : Integer;

 

C:

 

stdcall int pdfSetInfoW(

 char * filename,

 char * newfilename,

 char * infoitems,

 char * password,

 char * licname,

 char * lickey,

 long liccode,  // only in C, in C# use int!

 char * optionstr,

 int option);

 

Parameters:

 

filename - this is the complete path to the source file name

 

newfilename - this is the name of the file which should be written. You may pass an empty pointer, if you want to save under the original file name. In this case the PDF will be .loaded completely in memory.

 

infoitems - pass the info items a comma separated i.e. "\"Keywords=value\",...."

 

password - this password will be used to open the file. The created file will not be encrypted.

 

licname, lickey, liccode - this is the WPViewPDF licensing information (empty for the demo)

 

optionstr - this parameter is reserved

 

option:  Bit 1: If set, any exiting file will not be overwritten but first renamed to '...~pdf'