i have to build one PDF file from many RTF files placed somewhere on the storage. So I used the Aspose.Words package to convert the RTF content to a PDF file.
Furthermore I build a new PDF file with a background with the Aspose.Pdf package with the text content of the converted RTF file (this is a pdf File) before. This final PDF file has watermarks and backgrounds but the RTF file not.
And now the problem is that the text parts in the final PDF file were horizontally mirrored. The question is, why is that so?? I have spent hours for debugging and looking for any wrong configured parameter in the TextInfo or Font namespace, but I've found nothing.
The steps in pseudo code briefly:
1 Create a PDF with background
2 Convert a RTF file to a PDF file to the variable “RTFfile”
3 Place the PDF Text from the converted RTFfile to the PDF File with the background as created in step 1
Do steps 2 and 3 n times.
For step 1:
The background file is placed with the FloatingBox and the Adobe.Pdf.Generator.Pdf.Watermarks object.
For step 2:
I used the Aspose.Words.Document Save method, to save the RTF file as a PDF file.
For step 3:
I used the Aspose.Pdf.Document Object, the Aspose.Pdf.Text.TextFragmentAbsorber to find all the phrases in the pdf file. (The constructor is also empty and has no string). To insert all the new Text Fragments I used the textFragmentCollection and TextBuilder to Append the content to the PDF file with background and watermarks. In all the steps I append the new Text phrases to the PDF with the background.
My question is, why are the new inserted text fragments horizontally mirrored without having setting this option. Is this a bug?