wiki:en/docs/j2snettoolbox

J2S NET Toolbox, reference

Examples

Export page to PDF : ExportDocToPDF

<?xml version="1.0" encoding="utf-8"?>
<RequestList instance="INDESIGN_INSTANCE">
	<Request name="" var_PATH="/test/YOUR FILE INDESIGN.indd"></Request>
	<Request name="OpenDoc" docPath="file://%PATH%" var_result_DOCREF="docRef" closeMode="ASAP_DONTSAVE"></Request>
	<Request name="ExportDocToPDF" docRef="%DOCREF%" pdfPath="file:///test/VOTRE FICHIER PDF.pdf" firstPage="-1" lastPage="-1" presetName="NOM DU PRESET INDESIGN"></Request>
</RequestList>

Export page to JPG : ExportDocToJPG

<?xml version="1.0" encoding="utf-8"?>
<RequestList instance="INDESIGN_INSTANCE">
	<Request name="" var_PATH="/indesign_file_path.indd"></Request>
	<Request name="OpenDoc" docPath="file://%PATH%" var_result_DOCREF="docRef" closeMode="ASAP_DONTSAVE"></Request>
	<Request name="ExportDocToJPG" asSpread="0" firstPage= "0" lastPage= "0" scaleFactor="1" docRef="%DOCREF%" quality="2" jpgPath="file:///J2S/SampleDoc"></Request>
</RequestList>

Parameters

docRefTo specify the document to process.
scalefactorTo increase or reduce the JPEG file size; 1 to export the page at 72 dpi, 2 will double the number of pixels.
qualityDefines the JPEG quality; possible values 0 to 3 (2 by default).
asSpreadSet to 1 to export spreads with the firstSpread and lastSpread parameters. Set to 0 to export pages using firstPage and lastPage parameters.
firstSpreadIndex of first spread to export.
lastSpreadIndex of last spread to export.
firstPageIndex of first page to export.
lastPageIndex of last page to export.
jpgPathFile path to JPEG file to generate. Do not specify the suffix as several pages or spread can be exported; an inded and the suffix "jpg" will be added automatically.
Last modified 18 months ago Last modified on May 21, 2016 4:23:46 PM