PDF Corruption

Technical support for Spire.Doc

Moderator: iceblue support

PDF Corruption

Postby itsupport » 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;
Spire.Doc.Document spireDoc = new Spire.Doc.Document();
spireDoc.LoadFromFile(this.TemplatePath + "\\" + letter.RTFPath);
spireDocClone = spireDoc.Clone();

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;
if(spireDocClone != null)
You do not have the required permissions to view the files attached to this post.
Posts: 10
Joined: Thu Jun 14, 2012 7:18 pm

Re: PDF Corruption

Postby nancy » 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.
e-iceblue support team
contact: nancy.wang@e-iceblue.com
User avatar
Posts: 51
Joined: Wed May 30, 2012 2:02 am

Re: PDF Corruption

Postby amy.zhao » 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.

e-iceblue support
User avatar
Posts: 2277
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.Doc

Who is online

Users browsing this forum: No registered users and 0 guests