TE Edit Control Win32 / Win64 Help
Product page

TerPdcStart

Begin the PDF generation process.

int TerPdcStart(LicKey, OutFile, author, producer, title, subject, keywords, date, ModDate, flags)
int TerPdcStart2(LicKey, OutFile, author, producer, title, subject, keywords, date, ModDate, flags, PermFlags, OwnerPassword, UserPassword)
LPBYTE LicKey;

Your license key for WinPDF Converter. Your license key for WinPDF Converter is e-mailed to you after your order for WinPDF Converter is processed.

Please pass "" for this parameter when using WinPDF in the evaluation mode.

LPBYTE OutFile;The name of the PDF output file.
LPBYTE author;The optional author name for the document. Pass a blank string as default.
LPBYTE producer;The optional producer name for the document. Pass a blank string as default.
LPBYTE title;The optional title for the document. Pass a blank string as default.
LPBYTE subject;The optional subject string for the document . Pass a blank string as default.
LPBYTE keywords;The optional keywords for the document. Pass a blank string as default.
LPBYTE date;The optional creation date for the document. Pass a blank string as default.
LPBYTE ModDate;The optional modification date for the document. Pass a blank string as default.
DWORD flags;The following flag constants are available:
PDFFLAG_COMPRESS_TEXTCompress text in the PDF file.
PDFFLAG_NO_BOOKMARKDo not convert table-of-contents into PDF bookmarks.
PDFFLAG_EMBED_FONTSAlways embed fonts.
DWORD PermFlags;Use this flag to specify the permissions granted when the PDF document is being viewed or manipulated without using the owner password. You can use one or more of the following flags using the OR operator:
PERM_PRINTAllow printing operation
PERM_COPYAllow copying operation
PERM_MODAllow document modification
LPWORD OwnerPassword;

Optional document owner password.

When either an owner or a user password is specified, the PDF document is written out using Adobe standard encryption mechanism.

An owner password in the PDF document requires a PDF editor to prompt the user for the owner password and allow PDF modification only when the supplied owner password matches the encrypted owner password found in the file.

LPWORD OwnerPassword;

Optional user password

When either an owner or a user password is specified, the PDF document is written out using Adobe standard encryption mechanism.

A user password in the PDF document requires a PDF viewer to prompt the user for the user password and allow PDF display only when the supplied user password matches the encrypted user password (or owner password) found in the file.

Description: This function begins PDF document creation.

Return Value: This function returns the PdfId. The PdfId value is needed for passing to other Pdf APIs. This function returns 0 to indicate an error condition.