XML to PDF | iText | java.net.MalformedURLException












0















I've tried different "input.xml" and "tagMap.xml" files.
Tweaking around with the structure and tags... But i keep getting the "MalformedURLException"



Any suggestions, other than solving this with iText, are welcome. As long as the input files are always a XML with content (input.xml) and another XML with the tagMap (tagMap.xml).



This problem comes from the need to upgrade our systems. Weblogic server 8 to 12c, Java 1.4 to 1.8... There's no intent to change any functionality on the application, the code/libraries just seem to be incompatible.



(Note: I've reduced all the java code + content/structure of the "input.xml" and "tagMap.xml" for demonstration purposes.)



Any ideas?




package sandbox;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import com.lowagie.text.*;
import com.lowagie.text.pdf.*;
import com.lowagie.text.xml.XmlParser;

public class Main {

public static void main(String args) {
String testPath = "D:"+File.separator+"JavaTest";
// step 1: creation of a document-object
Document document = new Document(PageSize.A4, 80, 50, 30, 65);
// step 2: we create a writer that listens to the document
try {
PdfWriter.getInstance(document, new FileOutputStream
(testPath+File.separator+"outPut.pdf"));
// step 3: we parse the document
XmlParser.parse(document, testPath+ File.separator+ "input.xml"
, testPath+ File.separator+ "tagMap.xml");
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (DocumentException e) {
e.printStackTrace();
}

}

}


Stack trace:



Exception in thread "main" ExceptionConverter: java.net.MalformedURLException
at java.net.URL.<init>(URL.java:627)
at java.net.URL.<init>(URL.java:490)
at java.net.URL.<init>(URL.java:439)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:620)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:148)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:805)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:327)
at com.lowagie.text.xml.TagMap.init(Unknown Source)
at com.lowagie.text.xml.TagMap.<init>(Unknown Source)
at com.lowagie.text.xml.XmlParser.go(Unknown Source)
at com.lowagie.text.xml.XmlParser.parse(Unknown Source)
at sandbox.Main.main(Main.java:32)
Caused by: java.lang.NullPointerException
at java.net.URL.<init>(URL.java:532)
... 15 more


input.xml content:



<?xml version="1.0"?>

<GREETING>
<TEXT>Hello World PDF Test</TEXT>
</GREETING>


tagMap.xml content:



<tagmap>
<tag name="iText" alias="GREETING" />
<tag name="paragraph" alias="TEXT">
<attribute name="leading" value="14" />
<attribute name="size" value="10" />
<attribute name="style" value="italic" />
<attribute name="align" value="left" />
</tag>
</tagmap>


Using:
com.lowagie.text.xml.XmlParser



public static void parse(DocListener document,
java.lang.String file,
java.lang.String tagmap)
Parses a given file that validates with the iText DTD and writes the content to a document.
Parameters:
document - The document that will listen to the parser
file - The path to a file with the content
tagmap - A user defined tagmap









share|improve this question

























  • com.lowagie? You are using an iText version that is over a decade old! Please reproduce your problem in the most recent version (7.1.4) and then ask your question again (edit this one).

    – Amedee Van Gasse
    Nov 23 '18 at 10:25











  • Well... yes I've notice that and also that the version 2.1.7 is the last one under MPL/LGPL all newer verisons ("com.itextpdf" packages) are payed versions under AGPL. I was looking for a free option if possible... Even if its not with iText. We are upgrading the systems (server, OS version, java version..) and the ideal solution would be the one with less impact as we are not changing any functionality of the app.

    – Drew
    Nov 23 '18 at 11:34






  • 1





    "Paid versions under AGPL" is a contradictio in terminis. You have the choice between a free version under AGPL and a paid version under commercial license. Depending on your use case, you may be able to use the AGPL version for free. Are you using iText in an internal application, or are outside people using your application?

    – Amedee Van Gasse
    Nov 23 '18 at 11:53













  • It´s a internal Corporate application. Only our employees have access to it. So i can use any version of i text?... sorry for the confusion.

    – Drew
    Nov 23 '18 at 12:42











  • Chances are very high that you can use any version of iText. Contact iText Software to make sure, do not rely on the personal opinion of one random person on the internet (even if that person is in iText employee).

    – Amedee Van Gasse
    Nov 23 '18 at 12:46
















0















I've tried different "input.xml" and "tagMap.xml" files.
Tweaking around with the structure and tags... But i keep getting the "MalformedURLException"



Any suggestions, other than solving this with iText, are welcome. As long as the input files are always a XML with content (input.xml) and another XML with the tagMap (tagMap.xml).



This problem comes from the need to upgrade our systems. Weblogic server 8 to 12c, Java 1.4 to 1.8... There's no intent to change any functionality on the application, the code/libraries just seem to be incompatible.



(Note: I've reduced all the java code + content/structure of the "input.xml" and "tagMap.xml" for demonstration purposes.)



Any ideas?




package sandbox;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import com.lowagie.text.*;
import com.lowagie.text.pdf.*;
import com.lowagie.text.xml.XmlParser;

public class Main {

public static void main(String args) {
String testPath = "D:"+File.separator+"JavaTest";
// step 1: creation of a document-object
Document document = new Document(PageSize.A4, 80, 50, 30, 65);
// step 2: we create a writer that listens to the document
try {
PdfWriter.getInstance(document, new FileOutputStream
(testPath+File.separator+"outPut.pdf"));
// step 3: we parse the document
XmlParser.parse(document, testPath+ File.separator+ "input.xml"
, testPath+ File.separator+ "tagMap.xml");
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (DocumentException e) {
e.printStackTrace();
}

}

}


Stack trace:



Exception in thread "main" ExceptionConverter: java.net.MalformedURLException
at java.net.URL.<init>(URL.java:627)
at java.net.URL.<init>(URL.java:490)
at java.net.URL.<init>(URL.java:439)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:620)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:148)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:805)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:327)
at com.lowagie.text.xml.TagMap.init(Unknown Source)
at com.lowagie.text.xml.TagMap.<init>(Unknown Source)
at com.lowagie.text.xml.XmlParser.go(Unknown Source)
at com.lowagie.text.xml.XmlParser.parse(Unknown Source)
at sandbox.Main.main(Main.java:32)
Caused by: java.lang.NullPointerException
at java.net.URL.<init>(URL.java:532)
... 15 more


input.xml content:



<?xml version="1.0"?>

<GREETING>
<TEXT>Hello World PDF Test</TEXT>
</GREETING>


tagMap.xml content:



<tagmap>
<tag name="iText" alias="GREETING" />
<tag name="paragraph" alias="TEXT">
<attribute name="leading" value="14" />
<attribute name="size" value="10" />
<attribute name="style" value="italic" />
<attribute name="align" value="left" />
</tag>
</tagmap>


Using:
com.lowagie.text.xml.XmlParser



public static void parse(DocListener document,
java.lang.String file,
java.lang.String tagmap)
Parses a given file that validates with the iText DTD and writes the content to a document.
Parameters:
document - The document that will listen to the parser
file - The path to a file with the content
tagmap - A user defined tagmap









share|improve this question

























  • com.lowagie? You are using an iText version that is over a decade old! Please reproduce your problem in the most recent version (7.1.4) and then ask your question again (edit this one).

    – Amedee Van Gasse
    Nov 23 '18 at 10:25











  • Well... yes I've notice that and also that the version 2.1.7 is the last one under MPL/LGPL all newer verisons ("com.itextpdf" packages) are payed versions under AGPL. I was looking for a free option if possible... Even if its not with iText. We are upgrading the systems (server, OS version, java version..) and the ideal solution would be the one with less impact as we are not changing any functionality of the app.

    – Drew
    Nov 23 '18 at 11:34






  • 1





    "Paid versions under AGPL" is a contradictio in terminis. You have the choice between a free version under AGPL and a paid version under commercial license. Depending on your use case, you may be able to use the AGPL version for free. Are you using iText in an internal application, or are outside people using your application?

    – Amedee Van Gasse
    Nov 23 '18 at 11:53













  • It´s a internal Corporate application. Only our employees have access to it. So i can use any version of i text?... sorry for the confusion.

    – Drew
    Nov 23 '18 at 12:42











  • Chances are very high that you can use any version of iText. Contact iText Software to make sure, do not rely on the personal opinion of one random person on the internet (even if that person is in iText employee).

    – Amedee Van Gasse
    Nov 23 '18 at 12:46














0












0








0








I've tried different "input.xml" and "tagMap.xml" files.
Tweaking around with the structure and tags... But i keep getting the "MalformedURLException"



Any suggestions, other than solving this with iText, are welcome. As long as the input files are always a XML with content (input.xml) and another XML with the tagMap (tagMap.xml).



This problem comes from the need to upgrade our systems. Weblogic server 8 to 12c, Java 1.4 to 1.8... There's no intent to change any functionality on the application, the code/libraries just seem to be incompatible.



(Note: I've reduced all the java code + content/structure of the "input.xml" and "tagMap.xml" for demonstration purposes.)



Any ideas?




package sandbox;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import com.lowagie.text.*;
import com.lowagie.text.pdf.*;
import com.lowagie.text.xml.XmlParser;

public class Main {

public static void main(String args) {
String testPath = "D:"+File.separator+"JavaTest";
// step 1: creation of a document-object
Document document = new Document(PageSize.A4, 80, 50, 30, 65);
// step 2: we create a writer that listens to the document
try {
PdfWriter.getInstance(document, new FileOutputStream
(testPath+File.separator+"outPut.pdf"));
// step 3: we parse the document
XmlParser.parse(document, testPath+ File.separator+ "input.xml"
, testPath+ File.separator+ "tagMap.xml");
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (DocumentException e) {
e.printStackTrace();
}

}

}


Stack trace:



Exception in thread "main" ExceptionConverter: java.net.MalformedURLException
at java.net.URL.<init>(URL.java:627)
at java.net.URL.<init>(URL.java:490)
at java.net.URL.<init>(URL.java:439)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:620)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:148)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:805)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:327)
at com.lowagie.text.xml.TagMap.init(Unknown Source)
at com.lowagie.text.xml.TagMap.<init>(Unknown Source)
at com.lowagie.text.xml.XmlParser.go(Unknown Source)
at com.lowagie.text.xml.XmlParser.parse(Unknown Source)
at sandbox.Main.main(Main.java:32)
Caused by: java.lang.NullPointerException
at java.net.URL.<init>(URL.java:532)
... 15 more


input.xml content:



<?xml version="1.0"?>

<GREETING>
<TEXT>Hello World PDF Test</TEXT>
</GREETING>


tagMap.xml content:



<tagmap>
<tag name="iText" alias="GREETING" />
<tag name="paragraph" alias="TEXT">
<attribute name="leading" value="14" />
<attribute name="size" value="10" />
<attribute name="style" value="italic" />
<attribute name="align" value="left" />
</tag>
</tagmap>


Using:
com.lowagie.text.xml.XmlParser



public static void parse(DocListener document,
java.lang.String file,
java.lang.String tagmap)
Parses a given file that validates with the iText DTD and writes the content to a document.
Parameters:
document - The document that will listen to the parser
file - The path to a file with the content
tagmap - A user defined tagmap









share|improve this question
















I've tried different "input.xml" and "tagMap.xml" files.
Tweaking around with the structure and tags... But i keep getting the "MalformedURLException"



Any suggestions, other than solving this with iText, are welcome. As long as the input files are always a XML with content (input.xml) and another XML with the tagMap (tagMap.xml).



This problem comes from the need to upgrade our systems. Weblogic server 8 to 12c, Java 1.4 to 1.8... There's no intent to change any functionality on the application, the code/libraries just seem to be incompatible.



(Note: I've reduced all the java code + content/structure of the "input.xml" and "tagMap.xml" for demonstration purposes.)



Any ideas?




package sandbox;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import com.lowagie.text.*;
import com.lowagie.text.pdf.*;
import com.lowagie.text.xml.XmlParser;

public class Main {

public static void main(String args) {
String testPath = "D:"+File.separator+"JavaTest";
// step 1: creation of a document-object
Document document = new Document(PageSize.A4, 80, 50, 30, 65);
// step 2: we create a writer that listens to the document
try {
PdfWriter.getInstance(document, new FileOutputStream
(testPath+File.separator+"outPut.pdf"));
// step 3: we parse the document
XmlParser.parse(document, testPath+ File.separator+ "input.xml"
, testPath+ File.separator+ "tagMap.xml");
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (DocumentException e) {
e.printStackTrace();
}

}

}


Stack trace:



Exception in thread "main" ExceptionConverter: java.net.MalformedURLException
at java.net.URL.<init>(URL.java:627)
at java.net.URL.<init>(URL.java:490)
at java.net.URL.<init>(URL.java:439)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:620)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:148)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:805)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:327)
at com.lowagie.text.xml.TagMap.init(Unknown Source)
at com.lowagie.text.xml.TagMap.<init>(Unknown Source)
at com.lowagie.text.xml.XmlParser.go(Unknown Source)
at com.lowagie.text.xml.XmlParser.parse(Unknown Source)
at sandbox.Main.main(Main.java:32)
Caused by: java.lang.NullPointerException
at java.net.URL.<init>(URL.java:532)
... 15 more


input.xml content:



<?xml version="1.0"?>

<GREETING>
<TEXT>Hello World PDF Test</TEXT>
</GREETING>


tagMap.xml content:



<tagmap>
<tag name="iText" alias="GREETING" />
<tag name="paragraph" alias="TEXT">
<attribute name="leading" value="14" />
<attribute name="size" value="10" />
<attribute name="style" value="italic" />
<attribute name="align" value="left" />
</tag>
</tagmap>


Using:
com.lowagie.text.xml.XmlParser



public static void parse(DocListener document,
java.lang.String file,
java.lang.String tagmap)
Parses a given file that validates with the iText DTD and writes the content to a document.
Parameters:
document - The document that will listen to the parser
file - The path to a file with the content
tagmap - A user defined tagmap






java xml pdf xml-parsing itext






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 23 '18 at 11:37







Drew

















asked Nov 23 '18 at 0:33









DrewDrew

227




227













  • com.lowagie? You are using an iText version that is over a decade old! Please reproduce your problem in the most recent version (7.1.4) and then ask your question again (edit this one).

    – Amedee Van Gasse
    Nov 23 '18 at 10:25











  • Well... yes I've notice that and also that the version 2.1.7 is the last one under MPL/LGPL all newer verisons ("com.itextpdf" packages) are payed versions under AGPL. I was looking for a free option if possible... Even if its not with iText. We are upgrading the systems (server, OS version, java version..) and the ideal solution would be the one with less impact as we are not changing any functionality of the app.

    – Drew
    Nov 23 '18 at 11:34






  • 1





    "Paid versions under AGPL" is a contradictio in terminis. You have the choice between a free version under AGPL and a paid version under commercial license. Depending on your use case, you may be able to use the AGPL version for free. Are you using iText in an internal application, or are outside people using your application?

    – Amedee Van Gasse
    Nov 23 '18 at 11:53













  • It´s a internal Corporate application. Only our employees have access to it. So i can use any version of i text?... sorry for the confusion.

    – Drew
    Nov 23 '18 at 12:42











  • Chances are very high that you can use any version of iText. Contact iText Software to make sure, do not rely on the personal opinion of one random person on the internet (even if that person is in iText employee).

    – Amedee Van Gasse
    Nov 23 '18 at 12:46



















  • com.lowagie? You are using an iText version that is over a decade old! Please reproduce your problem in the most recent version (7.1.4) and then ask your question again (edit this one).

    – Amedee Van Gasse
    Nov 23 '18 at 10:25











  • Well... yes I've notice that and also that the version 2.1.7 is the last one under MPL/LGPL all newer verisons ("com.itextpdf" packages) are payed versions under AGPL. I was looking for a free option if possible... Even if its not with iText. We are upgrading the systems (server, OS version, java version..) and the ideal solution would be the one with less impact as we are not changing any functionality of the app.

    – Drew
    Nov 23 '18 at 11:34






  • 1





    "Paid versions under AGPL" is a contradictio in terminis. You have the choice between a free version under AGPL and a paid version under commercial license. Depending on your use case, you may be able to use the AGPL version for free. Are you using iText in an internal application, or are outside people using your application?

    – Amedee Van Gasse
    Nov 23 '18 at 11:53













  • It´s a internal Corporate application. Only our employees have access to it. So i can use any version of i text?... sorry for the confusion.

    – Drew
    Nov 23 '18 at 12:42











  • Chances are very high that you can use any version of iText. Contact iText Software to make sure, do not rely on the personal opinion of one random person on the internet (even if that person is in iText employee).

    – Amedee Van Gasse
    Nov 23 '18 at 12:46

















com.lowagie? You are using an iText version that is over a decade old! Please reproduce your problem in the most recent version (7.1.4) and then ask your question again (edit this one).

– Amedee Van Gasse
Nov 23 '18 at 10:25





com.lowagie? You are using an iText version that is over a decade old! Please reproduce your problem in the most recent version (7.1.4) and then ask your question again (edit this one).

– Amedee Van Gasse
Nov 23 '18 at 10:25













Well... yes I've notice that and also that the version 2.1.7 is the last one under MPL/LGPL all newer verisons ("com.itextpdf" packages) are payed versions under AGPL. I was looking for a free option if possible... Even if its not with iText. We are upgrading the systems (server, OS version, java version..) and the ideal solution would be the one with less impact as we are not changing any functionality of the app.

– Drew
Nov 23 '18 at 11:34





Well... yes I've notice that and also that the version 2.1.7 is the last one under MPL/LGPL all newer verisons ("com.itextpdf" packages) are payed versions under AGPL. I was looking for a free option if possible... Even if its not with iText. We are upgrading the systems (server, OS version, java version..) and the ideal solution would be the one with less impact as we are not changing any functionality of the app.

– Drew
Nov 23 '18 at 11:34




1




1





"Paid versions under AGPL" is a contradictio in terminis. You have the choice between a free version under AGPL and a paid version under commercial license. Depending on your use case, you may be able to use the AGPL version for free. Are you using iText in an internal application, or are outside people using your application?

– Amedee Van Gasse
Nov 23 '18 at 11:53







"Paid versions under AGPL" is a contradictio in terminis. You have the choice between a free version under AGPL and a paid version under commercial license. Depending on your use case, you may be able to use the AGPL version for free. Are you using iText in an internal application, or are outside people using your application?

– Amedee Van Gasse
Nov 23 '18 at 11:53















It´s a internal Corporate application. Only our employees have access to it. So i can use any version of i text?... sorry for the confusion.

– Drew
Nov 23 '18 at 12:42





It´s a internal Corporate application. Only our employees have access to it. So i can use any version of i text?... sorry for the confusion.

– Drew
Nov 23 '18 at 12:42













Chances are very high that you can use any version of iText. Contact iText Software to make sure, do not rely on the personal opinion of one random person on the internet (even if that person is in iText employee).

– Amedee Van Gasse
Nov 23 '18 at 12:46





Chances are very high that you can use any version of iText. Contact iText Software to make sure, do not rely on the personal opinion of one random person on the internet (even if that person is in iText employee).

– Amedee Van Gasse
Nov 23 '18 at 12:46












1 Answer
1






active

oldest

votes


















0














This isn't an actual solution for my question but if anyone comes here looking for one I state what I did:
What I did was to remove all usage of iText libs and replace the PDF processing with apache FOP 2.3
The implementation was straight forward. I had to generate the .xsl (template) and .xml (containing the input variables).






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53439415%2fxml-to-pdf-itext-java-net-malformedurlexception%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    This isn't an actual solution for my question but if anyone comes here looking for one I state what I did:
    What I did was to remove all usage of iText libs and replace the PDF processing with apache FOP 2.3
    The implementation was straight forward. I had to generate the .xsl (template) and .xml (containing the input variables).






    share|improve this answer




























      0














      This isn't an actual solution for my question but if anyone comes here looking for one I state what I did:
      What I did was to remove all usage of iText libs and replace the PDF processing with apache FOP 2.3
      The implementation was straight forward. I had to generate the .xsl (template) and .xml (containing the input variables).






      share|improve this answer


























        0












        0








        0







        This isn't an actual solution for my question but if anyone comes here looking for one I state what I did:
        What I did was to remove all usage of iText libs and replace the PDF processing with apache FOP 2.3
        The implementation was straight forward. I had to generate the .xsl (template) and .xml (containing the input variables).






        share|improve this answer













        This isn't an actual solution for my question but if anyone comes here looking for one I state what I did:
        What I did was to remove all usage of iText libs and replace the PDF processing with apache FOP 2.3
        The implementation was straight forward. I had to generate the .xsl (template) and .xml (containing the input variables).







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 4 '18 at 17:49









        DrewDrew

        227




        227
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53439415%2fxml-to-pdf-itext-java-net-malformedurlexception%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            這個網誌中的熱門文章

            Xamarin.form Move up view when keyboard appear

            Post-Redirect-Get with Spring WebFlux and Thymeleaf

            Anylogic : not able to use stopDelay()