Acrobat 8 SDK: docPrintParamsRec variable limited to 64 characters

Issue

If you are using the Acrobat SDK to control the print functionality in Acrobat/Reader, or to write a custom print plugin, you will need to use the function: AVDocPrintPagesWithParams(avDoc, &docPrintParamsRec);

The length of the input parameters in docPrintParamsRec, e.g. the printer names, are limited to 64 characters, or 32 Unicode characters. Windows however supports up to 240 characters for printer names.
Printing to a printer with a name longer than 64 characters, will not give an error message, the document will just not print.

Reason

This is a limitation in the Acrobat SDK as it still uses short printer names.  In the Acrobat standard printer dialog, there is no limitation as the dialog uses internal methods which have already been extended for long printer name support.

Solution

The Acrobat 9 SDK will resolve this issue and add support for long printer names.

Additional Information

Please refer to the following link for the declaration of the AVDocPrintPagesWithParams function (pg: 1713):

http://www.adobe.com/devnet/acrobat/pdfs/acrobat_pdfl_api_reference.pdf

it is discussed again here:

http://www.adobe.com/devnet/acrobat/pdfs/plugin_apps_developer_guide.pdf

reference: (180009702/1673603)

VN:F [1.9.22_1171]
Was this helpful? Please rate the content.
Rating: 0.0/10 (0 votes cast)

Comments are closed.