PluginInstance* This = (PluginInstance*) instance->pdata;
NPP_Print(NPP instance, NPPrint* printInfo){	if(printInfo == NULL)		return;	if (instance != NULL) {		PluginInstance* This = (PluginInstance*) instance->pdata;			if (printInfo->mode == NP_FULL) {		    /*		     * PLUGIN DEVELOPERS:		     *	If your plugin would like to take over		     *	printing completely when it is in full-screen mode,		     *	set printInfo->pluginPrinted to TRUE and print your		     *	plugin as you see fit.  If your plugin wants Netscape		     *	to handle printing in this case, set		     *	printInfo->pluginPrinted to FALSE (the default) and		     *	do nothing.  If you do want to handle printing		     *	yourself, printOne is true if the print button		     *	(as opposed to the print menu) was clicked.		     *	On the Macintosh, platformPrint is a THPrint; on		     *	Windows, platformPrint is a structure		     *	(defined in npapi.h) containing the printer name, port,		     *	etc.		     */			void* platformPrint =				printInfo->print.fullPrint.platformPrint;			NPBool printOne =				printInfo->print.fullPrint.printOne;#ifdef TEXT_PLUGIN			fprintf(stderr, "NPP_Print: FullPage print. platformPrint=%x, printOne=%s\n",				  platformPrint, printOne ? "True":"False");#endif /* TEXT_PLUGIN */						/* Do the default*/			printInfo->print.fullPrint.pluginPrinted = FALSE;		}		else {	/* If not fullscreen, we must be embedded */		    /*		     * PLUGIN DEVELOPERS:		     *	If your plugin is embedded, or is full-screen		     *	but you returned false in pluginPrinted above, NPP_Print		     *	will be called with mode == NP_EMBED.  The NPWindow		     *	in the printInfo gives the location and dimensions of		     *	the embedded plugin on the printed page.  On the		     *	Macintosh, platformPrint is the printer port; on		     *	Windows, platformPrint is the handle to the printing		     *	device context.		     */			NPWindow* printWindow =				&(printInfo->print.embedPrint.window);			void* platformPrint =				printInfo->print.embedPrint.platformPrint;#ifdef TEXT_PLUGIN			fprintf(stderr, "NPP_Print: EmbedPage print. platformPrint=%x,\n",				  platformPrint);			fprintf(stderr, "         : window(%d) : (%d, %d) [%d x %d]\n",					printWindow->window, printWindow->x, printWindow->y,					printWindow->width, printWindow->height);#endif /* TEXT_PLUGIN */		}	}}