Problem to convert DOCX to PDF
using Syncfusion.DocIO.DLS;
using Syncfusion.DocToPDFConverter;
using Syncfusion.Pdf;
using Syncfusion.Pdf.Parsing;
var documentTemplate = new Syncfusion.DocIO.DLS.WordDocument();
var filePath = Path.Combine(Server.MapPath(@"~/" + ConfigurationManager.AppSettings["temaplte"]),file);
documentTemplate.Open(filePath, FormatType.Docx);
// CODE.
.
.
var convertWord = new Conert.DocToPDFConverter();
PdfDocument pdf = convertWord.ConvertToPDF(documentTemplate);
using (var ms = new MemoryStream())
{
pdf.Save(ms);
Session[file] = ms.ToArray();
}
CODE_Minuta_51da0aa3.zip
Hi Javier,
Thank you for using Syncfusion products.
Currently DocIO does not support Doc to PDF
conversion by using DocIO in Partial trust mode. For performing Doc to PDF
conversion, it is mandatory to use DocIO in Full trust mode. Please refer the
below UG documentation link for details on Partial and full trust modes.
Partial and full trust mode:
http://help.syncfusion.com/ug/asp.net/docio/default.htm#!documents/aspnet.htm
For details on Doc to PDF conversion, please refer the below
UG documentation link.
Doc to PDF conversion:
http://help.syncfusion.com/ug/asp.net/docio/default.htm#!documents/doctopdf.htm
We have prepared a Doc to PDF conversion sample. Please find
the sample from the attachment.
Please let us know if you have any questions.
Regards,
Prasanth.
DocToPDF_Sample_dda91f9d.zip
Hi Javier,
Thank you for your update.
Please let us know if you have any questions.
Regards,
Sivasubramani.V
- 4 Replies
- 3 Participants
-
JB Javier Briseño Perez-Verdia
- Jul 31, 2013 05:52 PM UTC
- Aug 19, 2013 06:55 AM UTC