Hi,
When we merge text into PDF template, some “new line” was inserted. We just want pure inserting, otherwise when our customer try to copy out the inserted content, the inserted "new line"s may ruin the format. So do we have a way to get ride of the "new line"s? The sample files are attached. Thank you very much.
Simon Liu
CompPartners, Inc.
Hi Simon,
Thank you for the files.
Well, I am not clear about your requirement / issue. Please provide some more details about the issue you are facing so we can answer to your query better. It will be appreciated if you can share a code sample with us to show the issue you are facing to help us reproduce the problem at our end.
Sorry for the inconvenience,
Problem is with Saving a Word Document as PDF. When i Save a word document that has well formatted text with paragraphs etc, while saving it as .PDF adds a new line character to end of each line in the document , that messes up the copy-paste out the generated PDF
IS there any setting in PDFSaveOptions that will prevent this
Hi Simon,
Thank you for the details.
It seems that your issue is related to Aspose.Words for .NET. I am moving this thread to Aspose.Words forum and our representative of Aspose.Words will contact you regarding your issue.
Sorry for the inconvenience,
Hi
Simon,
Please accept my apologies for late response. I have tested the scenario and have not found any issue while using latest version of Aspose.Words for .NET. Please use the latest version of Aspose.Words for .NET. I have attached the output PDF file with this post.
Please let us know, If you have any more queries.<span style=“font-size: 10pt; font-family: “Tahoma”,“sans-serif”;”>
The extra new line was inserted when the file being transferred into PDF. So I think the problem is in Aspose.Pdf.dll, not in Aspose.Word.dll.
Hi Tahir,
We used the latest version you sent to us. The problem is still there. I think the extra new line was inserted when the file being transferred into PDF. So I think the problem is in Aspose.Pdf.dll, not in Aspose.Word.dll. If you conver a doc file to pdf file, you will see the extra new lines being inserted. It’s can be test when you copy the contect from pdf file to other format. The extra new lines will change the paragraph format.
Thank you very much.
Simon Liu
CompPartners, Inc.
Hi Simon,
Thanks for sharing the information. The Aspose.Words for .NET converts the word document to PDF. I have attached the output file with this post.
It would be great, If you share some more detail about extra lines issue with attached PDF. Are you using this output PDF file in Aspose.PDF? Please share your code as well for investigation purposes.