Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I do not have code for converting DocX to PDF, but it appears your requirement for DocX is not firm. Your last bullet says:</p> <blockquote> <p>Or create template document with other file format that can export it to DocX and PDF file format. Moreover, end-users should easily edit this file. If you know, please tell me.</p> </blockquote> <p>I read this to mean you want to be able to create a template document, fill it with data and covert it to PDF, yet allow the template to be maintained, right? </p> <p><strong>Solution: XSL-FO</strong></p> <p>XSL-FO is a W3C standard like HTML and can be transformed by a number of open source and commercial products into PDF, WordML, XPS, PS, PCL, SVG, TIFF, etc. I have used this to deliver hundreds of thousands of documents per month, both online as PDFs and offline (things like bulk check printing).</p> <p>To get you started, here is the <a href="http://www.w3.org/Style/XSL/" rel="noreferrer">W3C page for XML-FO</a>. There is a lot of good information there, including a list of software (both open source and commecial) down the left side. I have personally used two commercial products called <a href="http://www.xmlpdf.com/" rel="noreferrer">IBEX PDF Creator</a> and <a href="http://www.renderx.com/" rel="noreferrer">XEP by RenderX</a>. Both are excellent products, and there is a 100% managed C# implementation to get to PDF called <a href="http://www.codeplex.com/fonet" rel="noreferrer">FO.NET</a> up on CodePlex. I have not tried this, but it should satisfy your "free" criterion.</p> <p>There are a number of ways you can edit the template for documents to be created in XSL-FO. Typically this template is XSLT that you apply to your XML data, but this is not a requirement. I have built these by hand, but it is a bit of a learning curve. You can start with a document in XSL-FO and fill in sections of it with code, just as you could HTML. The good news is that <a href="http://www.stylusstudio.com/xsl_fo_processing.html" rel="noreferrer">there</a> <a href="http://www.editix.com/features/xslfo_editor.html" rel="noreferrer">are</a> <a href="http://www.oxygenxml.com/fo_editor.html" rel="noreferrer">a number of</a> <a href="http://www.renderx.com/tools/datastyler.html" rel="noreferrer">XSL-FO editors</a> out there. The bad news is that none I know of are free, but several of them are cheap and you may find something that meets the free criterion with a bit of Googling. However, one option is that you can convert from Word using a stylesheet (<a href="http://www.antennahouse.com/product/wordmltofo.htm" rel="noreferrer">commercial</a> &amp; <a href="http://msdn.microsoft.com/en-us/library/aa537167(office.11).aspx" rel="noreferrer">free</a>).</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload