NPEmbedPrint

  • Revision slug: NPEmbedPrint
  • Revision title: NPEmbedPrint
  • Revision id: 200873
  • Created:
  • Creator: Pmash
  • Is current revision? Yes
  • Comment migration

Revision Content

{{ Np-plugin-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

Revision Source

<p>
</p><p>
{{ Np-plugin-api() }}
</p>
<h3 id="Summary" name="Summary">Summary</h3>
<p>Substructure of <a href="en/NPPrint">NPPrint</a> that contains platform-specific information used during embedded mode printing.
</p>
<h3 id="Syntax" name="Syntax">Syntax</h3>
<pre>typedef struct _NPEmbedPrint
{
    NPWindow window;
    void*    platformPrint;  /* Platform-specific */
} NPEmbedPrint;
</pre> <h3 id="Fields" name="Fields">Fields</h3>
<p>The data structure has the following fields:
</p>
<dl><dt>window
</dt><dd>The NPWindow the plug-in should use for printing.
</dd></dl>
<dl><dt>platformPrint
</dt><dd>Additional platform-specific printing information.
<ul><li> Mac OS: THPrint
</li><li> Unix: Pointer to a <a href="en/NPPrintCallbackStruct">NPPrintCallbackStruct</a>. </li></ul>
</dd></dl>
<h3 id="Description" name="Description">Description</h3>
<p>The <a href="en/NPP_Print">NPP_Print</a> function passes a pointer to an <a href="en/NPPrint">NPPrint</a> object (previously allocated by the browser) to the plug-in. The <code>NPEmbedPrint</code> structure is used when the mode field of <a href="en/NPPrint">NPPrint</a> is set to NP_EMBED.
</p>
<h4 id="Unix" name="Unix">Unix</h4>
<p>The plug-in location and size in the NPWindow are in page coordinates (720/ inch), but the printer requires point coordinates (72/inch).
</p>
<h3 id="See_Also" name="See_Also">See Also</h3>
<p><a href="en/NPFullPrint">NPFullPrint</a>, <a href="en/NP_Port">NP_Port</a>, <a href="en/NPP_Print">NPP_Print</a>, <a href="en/NPPrint">NPPrint</a>, <a href="en/NPPrintCallbackStruct">NPPrintCallbackStruct</a>
</p>
Revert to this revision