Commit 5002c2cb authored by Raphaël's avatar Raphaël

Added Sources for MyPDFGenerator java class

parent bbb121ee
!SESSION 2016-12-17 12:27:04.837 -----------------------------------------------
eclipse.buildId=debbuild
java.version=1.8.0_111
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=fr_FR
Command-line arguments: -os linux -ws gtk -arch x86_64
!ENTRY org.eclipse.core.resources 2 10035 2016-12-17 12:27:08.384
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
!SESSION 2016-12-19 10:30:32.885 -----------------------------------------------
eclipse.buildId=debbuild
java.version=1.8.0_111
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=fr_FR
Command-line arguments: -os linux -ws gtk -arch x86_64
!ENTRY org.eclipse.core.resources 2 10035 2016-12-19 10:30:47.991
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
!SESSION 2017-01-09 11:50:02.177 -----------------------------------------------
eclipse.buildId=debbuild
java.version=1.8.0_111
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=fr_FR
Command-line arguments: -os linux -ws gtk -arch x86_64
!ENTRY org.eclipse.core.resources 2 10035 2017-01-09 11:50:05.612
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
!SESSION 2017-01-09 11:54:48.350 -----------------------------------------------
eclipse.buildId=debbuild
java.version=1.8.0_111
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=fr_FR
Command-line arguments: -os linux -ws gtk -arch x86_64
!ENTRY org.eclipse.core.resources 2 10035 2017-01-09 11:55:07.703
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import org.xhtmlrenderer.extend.FontResolver;
import org.xhtmlrenderer.pdf.ITextRenderer;
import com.lowagie.text.DocumentException;
public class MyPDFGenerator {
public static void main(String[] args) throws IOException, DocumentException {
//Paramètrage du fichier à convertir
//String baseFolder = System.getProperty("user.dir") + "/"; // correspond à la racine du projet Java
String entree = args[0];
String sortie = args[1];
File f = new File(entree);
if(f.exists() && !f.isDirectory()) {
OutputStream os = new FileOutputStream(sortie);
//Génération du PDF avec Flying Saucer
XHTMLToPDF(entree, os);
//fermeture de l'outputStream
os.close();
}
else{
System.err.println("Input file doesn't exist");
}
}
public static void XHTMLToPDF(String entree, OutputStream os) throws IOException, DocumentException {
//Génération du PDF avec Flying Saucer
ITextRenderer renderer = new ITextRenderer();
FontResolver resolver = renderer.getFontResolver();
renderer.getFontResolver().addFont("../font/cmunrm.ttf", true);
renderer.setDocument(new File(entree));
renderer.layout();
renderer.createPDF(os);
}
}
\ No newline at end of file
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import org.xhtmlrenderer.pdf.ITextRenderer;
import com.lowagie.text.DocumentException;
public class MyPDFGenerator {
public static void main(String[] args) throws IOException, DocumentException {
//Paramètrage du fichier à convertir
//String baseFolder = System.getProperty("user.dir") + "/"; // correspond à la racine du projet Java
String entree = args[0];
String sortie = args[1];
File f = new File(entree);
if(f.exists() && !f.isDirectory()) {
OutputStream os = new FileOutputStream(sortie);
//Génération du PDF avec Flying Saucer
XHTMLToPDF(entree, os);
//fermeture de l'outputStream
os.close();
}
else{
System.err.println("Input file doesn't exist");
}
}
public static void XHTMLToPDF(String entree, OutputStream os) throws IOException, DocumentException {
//Génération du PDF avec Flying Saucer
ITextRenderer renderer = new ITextRenderer();
FontResolver resolver = renderer.getFontResolver();
renderer.getFontResolver().addFont("../font/cmunrm.ttf", true);
renderer.setDocument(new File(entree));
renderer.layout();
renderer.createPDF(os);
}
}
\ No newline at end of file
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import org.xhtmlrenderer.extend.FontResolver;
import org.xhtmlrenderer.pdf.ITextRenderer;
import com.lowagie.text.DocumentException;
public class MyPDFGenerator {
public static void main(String[] args) throws IOException, DocumentException {
//Paramètrage du fichier à convertir
//String baseFolder = System.getProperty("user.dir") + "/"; // correspond à la racine du projet Java
String entree = args[0];
String sortie = args[1];
File f = new File(entree);
if(f.exists() && !f.isDirectory()) {
OutputStream os = new FileOutputStream(sortie);
//Génération du PDF avec Flying Saucer
XHTMLToPDF(entree, os);
//fermeture de l'outputStream
os.close();
}
else{
System.err.println("Input file doesn't exist");
}
}
public static void XHTMLToPDF(String entree, OutputStream os) throws IOException, DocumentException {
//Génération du PDF avec Flying Saucer
ITextRenderer renderer = new ITextRenderer();
renderer.setDocument(new File(entree));
renderer.layout();
renderer.createPDF(os);
}
}
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import org.xhtmlrenderer.extend.FontResolver;
import org.xhtmlrenderer.pdf.ITextRenderer;
import com.lowagie.text.DocumentException;
public class MyPDFGenerator {
public static void main(String[] args) throws IOException, DocumentException {
//Paramètrage du fichier à convertir
//String baseFolder = System.getProperty("user.dir") + "/"; // correspond à la racine du projet Java
//String entree = args[0];
//String sortie = args[1];
String entree = "final.xhtml";
String sortie = "result.pdf";
File f = new File(entree);
if(f.exists() && !f.isDirectory()) {
OutputStream os = new FileOutputStream(sortie);
//Génération du PDF avec Flying Saucer
XHTMLToPDF(entree, os);
//fermeture de l'outputStream
os.close();
}
else{
System.err.println("Input file doesn't exist");
}
}
public static void XHTMLToPDF(String entree, OutputStream os) throws IOException, DocumentException {
//Génération du PDF avec Flying Saucer
ITextRenderer renderer = new ITextRenderer();
FontResolver resolver = renderer.getFontResolver();
renderer.getFontResolver().addFont("../font/cmunrm.ttf", true);
System.out.println(org.xhtmlrenderer.pdf.ITextFontResolver.addFontFaceFont())
renderer.setDocument(new File(entree));
renderer.layout();
renderer.createPDF(os);
}
}
\ No newline at end of file
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import org.xhtmlrenderer.pdf.ITextRenderer;
import com.lowagie.text.DocumentException;
public class MyPDFGenerator {
public static void main(String[] args) throws IOException, DocumentException {
//Paramètrage du fichier à convertir
//String baseFolder = System.getProperty("user.dir") + "/"; // correspond à la racine du projet Java
String entree = args[0];
String sortie = args[1];
File f = new File(entree);
if(f.exists() && !f.isDirectory()) {
OutputStream os = new FileOutputStream(sortie);
//Génération du PDF avec Flying Saucer
XHTMLToPDF(entree, os);
//fermeture de l'outputStream
os.close();
}
else{
System.err.println("Input file doesn't exist");
}
}
public static void XHTMLToPDF(String entree, OutputStream os) throws IOException, DocumentException {
//Génération du PDF avec Flying Saucer
ITextRenderer renderer = new ITextRenderer();
renderer.setDocument(new File(entree));
renderer.layout();
renderer.createPDF(os);
}
}
\ No newline at end of file
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import org.xhtmlrenderer.extend.FontResolver;
import org.xhtmlrenderer.pdf.ITextRenderer;
import com.lowagie.text.DocumentException;
public class MyPDFGenerator {
public static void main(String[] args) throws IOException, DocumentException {
//Paramètrage du fichier à convertir
//String baseFolder = System.getProperty("user.dir") + "/"; // correspond à la racine du projet Java
String entree = args[0];
String sortie = args[1];
File f = new File(entree);
if(f.exists() && !f.isDirectory()) {
OutputStream os = new FileOutputStream(sortie);
//Génération du PDF avec Flying Saucer
XHTMLToPDF(entree, os);
//fermeture de l'outputStream
os.close();
}
else{
System.err.println("Input file doesn't exist");
}
}
public static void XHTMLToPDF(String entree, OutputStream os) throws IOException, DocumentException {
//Génération du PDF avec Flying Saucer
ITextRenderer renderer = new ITextRenderer();
FontResolver resolver = renderer.getFontResolver();
renderer.getFontResolver().addFont("../font/cmunrm.ttf", true);
renderer.setDocument(new File(entree));
renderer.layout();
renderer.createPDF(os);
}
}
\ No newline at end of file
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import org.xhtmlrenderer.pdf.ITextRenderer;
import com.lowagie.text.DocumentException;
public class MyPDFGenerator {
public static void main(String[] args) throws IOException, DocumentException {
//Paramètrage du fichier à convertir
//String baseFolder = System.getProperty("user.dir") + "/"; // correspond à la racine du projet Java
String entree = args[0];
String sortie = args[1];
File f = new File(entree);
if(f.exists() && !f.isDirectory()) {
OutputStream os = new FileOutputStream(sortie);
//Génération du PDF avec Flying Saucer
XHTMLToPDF(entree, os);
//fermeture de l'outputStream
os.close();
}
else{
System.err.println("Input file doesn't exist");
}
}
public static void XHTMLToPDF(String entree, OutputStream os) throws IOException, DocumentException {
//Génération du PDF avec Flying Saucer
ITextRenderer renderer = new ITextRenderer();
renderer.setDocument(new File(entree));
renderer.layout();
renderer.createPDF(os);
}
}
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import org.xhtmlrenderer.extend.FontResolver;
import org.xhtmlrenderer.pdf.ITextRenderer;
import com.lowagie.text.DocumentException;
public class MyPDFGenerator {
public static void main(String[] args) throws IOException, DocumentException {
//Paramètrage du fichier à convertir
//String baseFolder = System.getProperty("user.dir") + "/"; // correspond à la racine du projet Java
String entree = args[0];
String sortie = args[1];
File f = new File(entree);
if(f.exists() && !f.isDirectory()) {
OutputStream os = new FileOutputStream(sortie);
//Génération du PDF avec Flying Saucer
XHTMLToPDF(entree, os);
//fermeture de l'outputStream
os.close();
}
else{
System.err.println("Input file doesn't exist");
}
}
public static void XHTMLToPDF(String entree, OutputStream os) throws IOException, DocumentException {
//Génération du PDF avec Flying Saucer
ITextRenderer renderer = new ITextRenderer();
FontResolver resolver = renderer.getFontResolver();
renderer.getFontResolver().addFont("../font/cmunrm.ttf", true);
renderer.setDocument(new File(entree));
renderer.layout();
renderer.createPDF(os);
}
}
eclipse.preferences.version=1
org.eclipse.debug.ui.PREF_LAUNCH_PERSPECTIVES=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?>\n<launchPerspectives/>\n
preferredTargets=default\:default|
eclipse.preferences.version=1
org.eclipse.jdt.core.codeComplete.visibilityCheck=enabled
eclipse.preferences.version=1
org.eclipse.jdt.launching.PREF_VM_XML=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?>\n<vmSettings defaultVM\="57,org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType13,1481791055867" defaultVMConnector\="">\n<vmType id\="org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType">\n<vm id\="1481791055867" name\="java-8-openjdk-amd64" path\="/usr/lib/jvm/java-8-openjdk-amd64"/>\n</vmType>\n</vmSettings>\n
content_assist_number_of_computers=13
content_assist_proposals_background=255,255,255
content_assist_proposals_foreground=60,60,60
eclipse.preferences.version=1
fontPropagated=true
org.eclipse.jdt.internal.ui.navigator.layout=2
org.eclipse.jdt.ui.editor.tab.width=
org.eclipse.jdt.ui.formatterprofiles.version=12
org.eclipse.jdt.ui.javadoclocations.migrated=true
org.eclipse.jdt.ui.text.code_templates_migrated=true
org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates/>
org.eclipse.jdt.ui.text.custom_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates/>
org.eclipse.jdt.ui.text.templates_migrated=true
org.eclipse.jface.textfont=1|Monospace|10.0|0|GTK|1|;
proposalOrderMigrated=true
spelling_locale_initialized=true
tabWidthPropagated=true
useAnnotationsPrefPage=true
useQuickDiffPrefPage=true
eclipse.preferences.version=1
platform_path=/usr/lib/eclipse
workspace_target_handle=local\:1483959405357.target
TASKS_FILTERS_MIGRATE=true
eclipse.preferences.version=1
platformState=1480575901828
quickStart=false
tipsAndTricks=true
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/MyPDFGenerator/src/MyPDFGenerator.java"/>
</listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="1"/>
</listAttribute>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="MyPDFGenerator"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="MyPDFGenerator"/>
</launchConfiguration>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchHistory>
<launchGroup id="org.eclipse.debug.ui.launchGroup.debug">
<mruHistory>
<launch memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#10;&lt;launchConfiguration local=&quot;true&quot; path=&quot;MyPDFGenerator&quot;/&gt;&#10;"/>
</mruHistory>
<favorites/>
</launchGroup>
<launchGroup id="org.eclipse.debug.ui.launchGroup.profile">
<mruHistory/>
<favorites/>
</launchGroup>
<launchGroup id="org.eclipse.ui.externaltools.launchGroup">
<mruHistory/>
<favorites/>
</launchGroup>
<launchGroup id="org.eclipse.debug.ui.launchGroup.run">
<mruHistory>
<launch memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#10;&lt;launchConfiguration local=&quot;true&quot; path=&quot;MyPDFGenerator&quot;/&gt;&#10;"/>
</mruHistory>
<favorites/>
</launchGroup>
</launchHistory>
INDEX VERSION 1.126+/home/raphael/Documents/Travail/NF29/projet/hdoc/hdoc_to_pdf/lib/MyPDFGenerator Sources/.metadata/.plugins/org.eclipse.jdt.core
925982370.index
3485262699.index
3512161136.index
813341167.index
3530540584.index
54431955.index
3883508318.index
821608291.index
2812585433.index
2253745042.index
3066711521.index
2744878784.index
1089239932.index
502732891.index
703429556.index
2359322674.index
3539432263.index
1628687906.index
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<dirs>
<entry loc="/usr/lib/jvm/java-8-openjdk-amd64" stamp="1480575878000"/>
</dirs>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<libraryInfos>
<libraryInfo home="/usr/lib/jvm/java-8-openjdk-amd64" version="1.8.0_111">
<bootpath>
<entry path="/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/resources.jar"/>
<entry path="/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/rt.jar"/>
<entry path="/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/sunrsasign.jar"/>
<entry path="/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jsse.jar"/>
<entry path="/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jce.jar"/>
<entry path="/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/charsets.jar"/>
<entry path="/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/jfr.jar"/>
<entry path="/usr/lib/jvm/java-8-openjdk-amd64/jre/classes"/>
</bootpath>
<extensionDirs>
<entry path="/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext"/>
<entry path="/usr/java/packages/lib/ext"/>
</extensionDirs>
<endorsedDirs>
<entry path="/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/endorsed"/>
</endorsedDirs>
</libraryInfo>
</libraryInfos>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<typeInfoHistroy/>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<qualifiedTypeNameHistroy/>
<?xml version="1.0" encoding="UTF-8"?>
<section name="Workbench">
<item value="/home/raphael/Documents/Travail/NF29/projet/hdoc/hdoc_to_pdf/lib" key="org.eclipse.jdt.ui.lastextjar"/>
<section name="quick_assist_proposal_size">
</section>
<section name="BuildPathsPropertyPage">
<item value="3" key="pageIndex"/>
</section>
<section name="completion_proposal_size">
</section>
<section name="JavaElementSearchActions">
</section>
</section>