Exemplo n.º 1
0
    // load the file to send:
    readfile($filename);
    unlink($filename);
} else {
    print_header("queXML Tools: Create PDF with banding XML for queXF from queXML");
    $quexmlpdf = new queXMLPDF(PDF_PAGE_ORIENTATION, 'mm', PDF_PAGE_FORMAT, true, 'UTF-8', false);
    ?>
	<h1>queXML to PDF and banding XML for queXF</h1>
	<p>If the file is valid queXML: a ZIP file containing a PDF and an XML file for banding using <a href='http://quexf.sourceforge.net'>queXF</a> will be returned</p>
	<br>
		<form enctype="multipart/form-data" action="?" method="post">
			<input type="hidden" name="MAX_FILE_SIZE" value="1000000000" />
			<label for="userfile">Choose a queXML file to upload: </label><input name="userfile" type="file" /><br/>
			<label for="stylefile">(Optional otherwise set below) Choose a queXML style settings file to upload: </label><input name="stylefile" type="file" /><br/>
			<div><label for="style">Style:</label><textarea name="style" id="style" cols="120" rows="14"><?php 
    echo $quexmlpdf->getStyle();
    ?>
</textarea></div>
			<div><label for="responseTextFontSize">Response text / sub question font size</label><input name="responseTextFontSize" type="text" value="<?php 
    echo $quexmlpdf->getResponseTextFontSize();
    ?>
"/></div>
			<div><label for="responseLabelFontSize">Response label font size (normal)</label><input name="responseLabelFontSize" type="text" value="<?php 
    $t = $quexmlpdf->getResponseLabelFontSize();
    echo $t[0];
    ?>
"/></div>
			<div><label for="responseLabelFontSizeSmall">Response label font size (small)</label><input name="responseLabelFontSizeSmall" type="text" value="<?php 
    $t = $quexmlpdf->getResponseLabelFontSize();
    echo $t[1];
    ?>