But with this version we have noticed following issue:
For some of the documents Font size is reduced. Please see attachment Issue1.rar, I have attached doc file and resulting PDFs with old and new version. In new trial version font size is reduced.
For some of the documents data is missing. Please see attachment Issue2.rar, I have attached doc file and resulting PDFs with old and new version. In new trial version text is shifted to next page. Text missing from first page.
Please let me know if these issues can be resolved.
2) For some of the documents data is missing. Please see attachment Issue2.rar, I have attached doc file and resulting PDFs with old and new version. In new trial version text is shifted to next page. Text missing from first page.
I have tested the scenario and have not found the shared issue while using latest version of Aspose.Words for .NET 13.12.0. Please use the Aspose.Words for .NET 13.12.0. I have attached the output Pdf file with this post for your kind reference.
Disha:
1) For some of the documents Font size is reduced. Please see attachment Issue1.rar, I have attached doc file and resulting PDFs with old and new version. In new trial version font size is reduced.
I am working over this query and will update you asap.
1)
For some of the documents Font size is reduced. Please see attachment
Issue1.rar, I have attached doc file and resulting PDFs with old and new
version. In new trial version font size is reduced.
Please note that Aspose.Words mimics the same behavior as MS Word does. If you convert your document to Pdf by using MS Word, you will get the same output.
Please find required details below. Please note that with previous version of Aspose.Words we are not having same issue. Itâs only with latest trial version that we are facing these issues:
OS (Windows Version) - Windows 7
Architecture (32 / 64 bit) - 64 bit
.NET Framework version - 3.5
Provide information about your specific culture, such as the name of the culture, language and country/region : en-GB
Please supply us with the code from your application that is causing the issue :
public byte[] ConvertDocumentToPDF(byte[] document)
{
using (var docStream = new MemoryStream(document))
{
Document doc = new Document(docStream);
doc.UpdateFields();
return SaveAsPDF(doc);
}
}
Please supply us with the output Pdf documents showing the undesired behavior (Please do not modify the Pdf files) I have already provided them. Please refer to initial attachments
Please take screen shots of problematic area in your output Pdf file and share these screen shots
Thanks for sharing the
detail. I have tested the scenario at Windows 7 (64 bit), .NET Framework
3.5 and have not found the shared issue. I have attached the output Pdf
files with this post for your kind reference.
Aspose.Words requires TrueType fonts when rendering documents to fixed-page formats (e.g. PDF, XPS or SWF). Please make sure you have all the Fonts installed on the machine youâre using to convert Word document to Pdf.
Moreover, I suggest you please request a free 30-day trial license from here and test your scenario.
I am attaching a sample application here(Aspose.POC.zip). Please run this application, and upload the doc file attached (Merge 1 - Active 2010). You will notice that when PDF is generated the first page is blank and text is pushed to second page. This is Issue 2 of main thread.
Please note that for most of the doc file, we donât get this issue for conversion to PDF.
Here are the additional details, which might be helpful:
OS (Windows Version): Windows 7 Enterprise
Architecture (32 / 64 bit): 64 bit
.NET Framework version : 3.5
Provide information about your specific culture, such as the name of the culture, language and country/region. En- US
The shared project is using Aspose.POC.dll. Could you please share the detail of this DLL?
I have tested again the scenario at Windows 7 (64 bit), .NET Framework
3.5 by using following code example and have not found the shared issue.
var doc =
new Aspose.Words.Document(MyDir + "Merge+1±+Active+2010.doc");
doc.UpdateFields();
//var warningCollector = new PDFhelper.PDFWarningCallback();
var pdfSaveOptions = new Aspose.Words.Saving.PdfSaveOptions()
{
WarningCallback = new PDFWarningCallback(),
UseCoreFonts = false
};
var outputFileStream = new MemoryStream();
doc.Save(outputFileStream, pdfSaveOptions);
var outputPDFFileBytes = outputFileStream.ToArray();
outputFileStream.Dispose();
File.WriteAllBytes(MyDir + "output.pdf", outputPDFFileBytes);
Please request a free 30-day trial license from here and test your scenario with latest version of Aspose.Words v13.12.
As suggested by you earlier I got a trial license from Aspose, version 13.12.0.
With that second issue i.e page shifting has completely gone.
But the first issue (Font size ) is still there.
On further investigation we figured out that thereâs a difference in formatting of .docx file when we open it in MSword 2010 vs MSword 2003
Similarly when we convert the docx file with previous version of Aspose(11.0.0), the resulting PDF is similar to how this docx file appear in MS Word 2003.
But when we convert same docx file with latest version of aspose(13.12.0), resulting PDF is similar to how docx file appear in MS Word 2010.
Can you confirm that previous version of Aspose(11.0.0) actually converts docx file with similar formatting as it appear in previous version of MS Word.
Attached docx file and PDF output with old and new version for your reference. Try to open docx file with MS Word 2003 and MS Word to see the difference.
Please also note that there is a difference in number of pages too.
Thanks for your inquiry. I have tested the scenario while using latest version of Aspose.Words for .NET 14.1.0 and have not found the shared issue. I have attached the output documents with this post for your kind reference.
MS Word 2003 display the contents of your document in two pages (same as MS Word 2010 does). Please check the attached image for detail.
I agree that the issue does not exist with latest version of Aspose. What I am saying that using previous version of aspose (version 11) we are getting output same as Word 2003.
So my question is, is it a fair assumption to make that aspose version 11 is compatible with Word 2003?
Thanks for your inquiry. Please check the attached output Pdf file generated by using Aspose.Words v 11.0.0. MS Word 2003 does not display the contents as shown in attached Pdf file. This is a bug in Aspose.Words v 11.0.0 and has been fixed in latest version of Aspose.Words v 14.1.0. Please check the attached Word 2003.png image.
Please note that MS Word 2003 display the contents of your document same as MS Word 2010 does. So the output must be same as Out.pdf (see my previous post).
Hope this answers your query. Please let us know if you have any more queries.
With the trial version if 13.12, we are facing more issues. Attached doc (Extra_text.doc), when we convert to PDF, one extra line in red appear, please check screenshot(Extra_text.jpg).
For the doc (Extra_page.doc), when we convert to PDF, it gives 3 page PDF while there are just 2 pages in doc. Please check Extra_page.pdf. Password to open pdf is : e2cb57ac-af6e-fead-7ee9-c00806bc5c77
Please test with 13.12 as I have trial license of this version. We have number of templates which we are testing. So please do not suggest to test with latest version 14, as this will increase our testing time forcing us to retest all the templates.
I have tested the scenario and have managed to reproduce the same issues at my side. For the sake of correction, I have logged these problems in our issue tracking system as follow.
WORDSNET-9781 : Document.Save method changes the text color (see the attached image for text in white color)
WORDSNET-9782 : Extra empty page is created after conversion from Doc to Pdf
I have linked this forum thread to the same issues and you will be notified via this forum thread once these issues are resolved.
I have tested the scenario and have managed to reproduce the same issues at my side. For the sake of correction, I have logged these problems in our issue tracking system as follow.
WORDSNET-9787 : Doc to Pdf conversion issue with signature (Shape) rendering
WORDSNET-9788 : Doc to Pdf conversion issue with text (date) alignment
I have linked this forum thread to the same issues and you will be notified via this forum thread once these issues are resolved.
It is to inform you that our development team has completed the work on the issue (WORDSNET-9781 - Extra_text.jpg) and has come to a conclusion that this issue and the undesired behavior youâre observing is actually not a bug in Aspose.Words. So, we have closed this issue as âNot a Bugâ.
There is an insert revision in your document. Please check the attached image for detail. If you do not want to render this extra line to PDF you have to call Document.AcceptAllRevisions before converting to PDF as shown below. I have attached the output Pdf file with this post for your kind reference.
Document doc = new Document(MyDir + âExtra_text.docâ);
Thanks for the reply on this issue. I will try if this works. However out of curiosity I would like to know if it is not a bug then why I donât see this issue in version 11.0 of ASPOSE.Words that we are using.
Also please let me know from which version onward you have support for AcceptAllRevisions() method.
Thanks for your inquiry. When you generate the PDF using Aspose.Words v11.0.0, the text âClearlyBusiness_Col_Simp_CBC_2Dayâ exists in Pdf file with text color white. Please check the attached image for detail. You can also check this text by copying the text of Pdf file into notepad.
Document.AcceptAllRevisions accepts all tracked changes in the document. To get the required output, please call Document.AcceptAllRevisions method. Unfortunately, I cannot tell you about the exact version in which this method was introduced. However, this method exists in v11.0.0 and older version as well.
Hope this answers your query. Please let us know if you have any more queries.