Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

NPEmbedPrint

« Gecko Plugin API Reference « Plug-in Side Plug-in API

Summary

Substructure of NPPrint that contains platform-specific information used during embedded mode printing.

Syntax

typedef struct _NPEmbedPrint
{
    NPWindow window;
    void*    platformPrint;  /* Platform-specific */
} NPEmbedPrint;

Fields

The data structure has the following fields:

window
The NPWindow the plug-in should use for printing.
platformPrint
Additional platform-specific printing information.

Description

The NPP_Print function passes a pointer to an NPPrint object (previously allocated by the browser) to the plug-in. The NPEmbedPrint structure is used when the mode field of NPPrint is set to NP_EMBED.

Unix

The plug-in location and size in the NPWindow are in page coordinates (720/ inch), but the printer requires point coordinates (72/inch).

See Also

NPFullPrint, NP_Port, NPP_Print, NPPrint, NPPrintCallbackStruct

Document Tags and Contributors

Tags: 
 Contributors to this page: teoli, Pmash
 Last updated by: Pmash,