<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
- <list default="true" id="f146bc67-2578-4de3-9db2-94d2d43e9e83" name="Default" comment="wip #5410" />
+ <list default="true" id="f146bc67-2578-4de3-9db2-94d2d43e9e83" name="Default" comment="wip #5410">
+ <change beforePath="$PROJECT_DIR$/../../../src/PDFTools.php" beforeDir="false" afterPath="$PROJECT_DIR$/../../../src/PDFTools.php" afterDir="false" />
+ </list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<workItem from="1694090487471" duration="6051000" />
<workItem from="1694157597994" duration="9552000" />
<workItem from="1694187452028" duration="14000" />
+ <workItem from="1694189811041" duration="112000" />
</task>
<task id="LOCAL-00001" summary="wip #1111 @0.5">
<created>1487172253077</created>
new FileOutputStream(fpfile), "UTF8"));
out.write(fbtext);
out.close();
+ System.out.println("Save texts to "+fpfile);
if (!robust) {
String fbindex = text2index(fbtext);
out = new BufferedWriter(new OutputStreamWriter(
new FileOutputStream(fifile), "UTF8"));
out.write(fbindex);
out.close();
+ System.out.println("Save indexes to "+fifile);
}
out = new BufferedWriter(new OutputStreamWriter(
new FileOutputStream(fhfile), "UTF8"));
out.write(fbhtml);
out.close();
+ System.out.println("Save html to "+fhfile);
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
} catch (FileNotFoundException e) {
if ($ignoreSeparators) {
$out .= '/sep_' . md5($ignoreSeparators);
}
+ if ($mode !== 'standard') {
+ $out .= '/' . $mode;
+ }
$out = Files::mkdir($out);
$fwstk = new FWSTK();
$fwstk->setArg('--ignoreSeparators "' . $ignoreSeparators . '"');
}
$fwstk->execute();
+
}
public static function extractHighlightsData($pdf, $out, $mode = 'standard')
{
- $out .= 'texts/';
- Files::mkdir($out);
+ $out .= 'texts';
+ if ($mode !== 'standard') {
+ $out .= '/' . $mode;
+ }
+ $out=Files::mkdir($out);
$fwstk = new FWSTK();
$fwstk->setArg('--input ' . $pdf);
$fwstk->setArg('--layout ' . $out . 'p%d.fby');
$fwstk->setArg('--cmaps ' . $out);
$fwstk->setArg('--fonts' . $out . 'fonts/web/');
+ $fwstk->setArg('--mode' . $mode);
$fwstk->execute();
}