While converting the document to PDF we are losing all the text within our textbox on a word 2010 document.
I am working on an upgrade to update all our word templates to 2010 which are currently in word 2007. With Aspose for Words .NET 11.0 we have no issues with documents in word 2007 but if we update to word 2010 it eats up the textbox with everything in it. I have so far tried 15.12 and 16.3 versions with no success.
Other than that we have an issue converting a mergefield into a barcode font(C39N2_3.TTF), it is keep printing it as a text when converts to PDF. With Words .NET 11.0 this is not an issue, but with 15.12 and 16.3 regardless of the MS word version(2007/2010).
Any help will be greatly appreciated.
Thanks
Yasir
- Your input Word documents
- Please attach the output Pdf files that show the undesired behavior.
- Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.
Thank you Tahir for your response.
I have attached the zip which contains the information you have requested.
Our application that creates the letters is part windows application and part WCF service. In the zip file I have provided you with the part of WCF service which uses the Aspose words to convert the documents. In this I am using 13.5 Aspose version. I have tried everything upto 13.5, starting at 11.0, including 15.12, 16.3 and 15.3 with no success.
I hope with the given information you can resolve the issue, let me know if more info required.
Thanks
Yasir
yxsultan@arkbluecross.com:
if we update to word 2010 it eats up the textbox with everything in it.
yxsultan@arkbluecross.com:
Other than that we have an issue converting a mergefield into a barcode font(C39N2_3.TTF), it is keep printing it as a text when converts to PDF. With Words .NET 11.0 this is not an issue, but with 15.12 and 16.3 regardless of the MS word version(2007/2010).
did you not get the attachment from my earlier response. It has everything you asked for.
-Yasir
Attached please find the .zip with the requested information.
Letters parts had Invoice.docx document.
Hope this will help.
Regards
-Yasir
Dear Tahir,
1. WordFiller.cs does the mail merge, it is under the service application.
2. Combine docs is a method of TemplateManager.vb, this class exists under Wcf application which is part of the ReqGenService
3. You can pickup any combination of Header,Content and Footer to create one letter. A letter can only have one header or footer but can have more than one content part.
4. The source code I shared with you is error free except that it has connections to our shared locations and DB servers which I cannot do anything about.
Please feel free to let me know if the given information is enough or not, this is the maximum I can do.
Thanks
Yasir
Thank you Tahir.
I will look at the application.
The mail merge part gets taken taken care by the WordFiller project within the ReqGenSvc solution. FormFiller.cs within the project have the mail merge piece of code not WordFiller.cs, sorry gave you the wrong filename.
Regards
Yasir
Hello Tahir,
Issue with the textbox has been addressed. Now the barcode issue needs to be addressed.
I am attaching an app which fills the word doc and then creates the word document. I have added the code to covert to PDF using aspose.words 16.3. It is losing the barcode font when it converts the document to PDF. I am using a 3 of 9 barcode font.
Please see the attached zip with the console app, Header001.docx(test template) and a folder ‘testdocs’ which shows the output in word and pdf forms.
Please let me know if you have any questions.
Thanks
Yasir
- First, select the File option from the Word ribbon at the top of the screen.
- From the options bar on the left-hand side, choose Options.
- A Word Options window will come up. Select the Save option from the banner on the left-hand side.
- Under Preserve fidelity when sharing this document select the check box next to Embed fonts in the file. Then click OK.
Tahir thankyou for your response. I will look into the solution you suggested but there are few things I want to make clear, probably I was not able to communicate earlier.
First the template I have is in Word 2010 not 2013, if that is an issue please let me know.
Secondly, I have font installed and as mentioned in my earlier responses I can create the document fine on my machine if it is a 2007 docx.
I have spent quite a bit before reaching out to ASPOSE, I can be wrong but I think the issue is with aspose.words and the application module I sent you in the response before this clearly proves it.
Also, if I use the functionality within the created word document to save it as a PDF it does it with the BarCode printing fine with no issues.
I am attaching the screen shots that I have font installed and it is of True Type also PDF that was converted by MS word PDF converter.
Regards
Yasir
Attached please find the zip with word and PDF.
I have created the
PDF from the Aspose 16.3 while word has the font, after making the
changes suggested by you, the PDF still printing the text.
Regards
Yasir
Tahir,
Attached please find the zip folder with the font.
Thanks for all the help.
Hello Tahir,
Would like to know if you have any update(s) on the issue.
Thanks
Yasir