/* This function calls TIFFWriteDirectory on the output after blanking its output by replacing the read, write, and seek procedures with empty implementations, then it replaces the original implementations.  */
void t2p_write_advance_directory(T2P *, TIFF *)
/* This function calls TIFFWriteDirectory on the output after blanking its output by replacing the read, write, and seek procedures with empty implementations, then it replaces the original implementations.  */
void t2p_write_advance_directory(T2P *, TIFF *)
{
	t2p_disable(output);
	if(!TIFFWriteDirectory(output)){
		TIFFError(TIFF2PDF_MODULE, 
			"Error writing virtual directory to output PDF %s", 
			TIFFFileName(output));
		t2p->t2p_error = T2P_ERR_ERROR;
		return;
	}
	t2p_enable(output);
	return;
}