Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files from any .NET platform (C#, VB.NET, ASP.NET, .NET Core) and Java applications (J2SE and J2EE) with fast and high quality performance.

Thu Jul 05, 2012 2:32 pm

I have created a number of Docx files using the spire.doc component and it works great. I then tried to save the docx files as pdf files using the component and got mixed results. I have attached all of the files for your review.

here is the code I am using

Spire.Doc.Document spireDocClone = null;
try
{
Spire.Doc.Document spireDoc = new Spire.Doc.Document();
spireDoc.LoadFromFile(this.TemplatePath + "\\" + letter.RTFPath);
spireDocClone = spireDoc.Clone();
spireDoc.Close();

RunLetter(spireDocClone, letter);
string fileName = Guid.NewGuid().ToString() + "_" + letter.TemplateName + ".pdf";
this.OutputFile = System.IO.Path.Combine(this.PdfPath, fileName);
string docxfile = System.IO.Path.Combine(this.PdfPath, Guid.NewGuid().ToString() + "_" + letter.TemplateName + ".docx");
spireDocClone.SaveToFile(docxfile, FileFormat.Docx2010);
spireDocClone.SaveToFile(this.OutputFile, Spire.Doc.FileFormat.PDF);
catch (Exception ex)
{
string str = ex.Message;
}
finally
{
if(spireDocClone != null)
spireDocClone.Close();
}
You do not have the required permissions to view the files attached to this post.

itsupport
 
Posts: 10
Joined: Thu Jun 14, 2012 7:18 pm

Mon Jul 09, 2012 1:33 am

Hi itsupport,

About your problem, we have solved it. We will update it in next Spire.Doc version. We will inform you once the new version is released. Thank you for your cooperation and understanding.
Nancy
e-iceblue support team
contact: nancy.wang@e-iceblue.com
User avatar

nancy
 
Posts: 51
Joined: Wed May 30, 2012 2:02 am

Tue Jul 17, 2012 7:49 am

Hi itsupport,

Thanks for your patience and so sorry for the long-time waiting.
The issue you reported is already resolved. Please download the latest hot fix (spire.doc_hotfix_4.4.2) here (http://www.e-iceblue.com/Download/download-word-for-net-now.html).

Please feel free to contact us if you have any questions and requests.

Amy
e-iceblue support
User avatar

amy.zhao
 
Posts: 2328
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.Doc