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

NPPrintCallbackStruct

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

Summary

Contains information required by the platformPrint field of the NPEmbedPrint structure during embedded mode printing on Unix systems.

This structure is only used on Unix.

Syntax

typedef struct
{
    int32  type;
    FILE*  fp;
} NPPrintCallbackStruct;

Fields

The data structure has the following fields:

type
Always contains NP_PRINT.
fp
Pointer to the file to which the plug-in should write its PostScript data.

Description

Callback structures are used to pass platform-specific information. The NPPrintCallbackStruct structure contains the file pointer to which the plug-in should write its PostScript data. This information is required by the platformPrint field of the NPEmbedPrint structure during embedded mode printing.

At the time the plug-in is called, the browser has already opened the file and written PostScript for other parts of the page. When the plug-in is done, it should leave the file open, so the browser can continue to write additional PostScript data to the file.

See Also

NPP_Print, NPEmbedPrint, NPSetWindowCallbackStruct, NPAnyCallbackStruct

Document Tags and Contributors

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