Words with accents

Hi,
using an ECM (Onbase) to manage documents. In your module for printing (dot net), need to add a foot with the data of the user requesting the printing. When the user name has accent is being replaced by special characters.
For example: Araújão - Araoejªo

String waterMark = "Araújão";
FormattedText formatText = new FormattedText(waterMark, System.Drawing.Color.FromArgb(180, 0, 0), Aspose.Pdf.Kit.FontStyle.TimesItalic,

EncodingType.Winansi, false, 12);
formatText.AddNewLineText(date.ToShortDateString().ToString() + " - " + date.ToShortTimeString().ToString());

PdfFileStamp stamper = new PdfFileStamp(inFile, outFile);
stamper.AddFooter(formatText, 0);
stamper.Close();


Sorry an error of writing because this isn´t my native language. I am Brazilian.
Thank´s.

Hi Aline,

Thank you very much for considering Aspose.

We're looking into the issue. You'll be updated as we find the resolution.

We appreciate your patience.

Regards,

Hi Aline,

Can you please share the sample PDF file with us to investigate the issue? Also, please elaborate, are you having some kind of error while adding the text? In this sample, you're trying to add the text, and not replacing, then why did you mention that you're trying to replace the text?

Please elaborate the issue in a bit detail so we'll be able to help you out in a better way.

Regards,

Hi,

The sample PDF file is attached in this message.

First, when I open a document in ECM (Onbase), I select the option "Print", a window will open like the image 1.jpg, and I choose the printer "FreePDF". Second, a PDF file is showed with the water mark I added in the code.(look at the document 30428[1].pdf )

I already verified that the keyword realName bring me the correct format of the word "Araújão" from ECM (Onbase). But when I print the document using Aspose.Pdf.Kit (.Net), the realName appears like "Araoejªo".

-------

waterMark = "Printed by: " + realName + " - " + pn + " - " + docType;

/*COPY THE FILE FROM ONBASE (NO WATER MARK)*/

FileStream fStreamWrite = new FileStream(inFile, FileMode.Create, FileAccess.Write);

BinaryWriter binWriter = new BinaryWriter(fStreamWrite);

binWriter.Write(byteData);

binWriter.Close();

fStreamWrite.Close();

/*ADDING WATER MARK*/

FormattedText formatText = new FormattedText(waterMark, System.Drawing.Color.FromArgb(180, 0, 0), Aspose.Pdf.Kit.FontStyle.TimesItalic, EncodingType.Winansi, false, 12);

formatText.AddNewLineText(date.ToShortDateString().ToString() + " - " + date.ToShortTimeString().ToString());

PdfFileStamp stamper = new PdfFileStamp(inFile, outFile);

stamper.AddFooter(formatText, 0);

stamper.Close();

/*READ THE FILE WITH WATER MARK*/

FileStream fStreamRead = new FileStream(outFile, FileMode.Open, FileAccess.Read);

BinaryReader binReader = new BinaryReader(fStreamRead);

byte[] pageData = binReader.ReadBytes((int)fStreamRead.Length);

binReader.Close();

fStreamRead.Close();

----------

Thanks.

Hi Aline,

I have tested the issue and found the same problem. I have logged this issue as PDFKITNET-8867 in our issue tracking system. Our team will be looking into the issue and you'll be updated as the issue is resolved.

We'll appreciate your patience.

Regards,

Hi,

do you know how much times (one week, one month) this issues will be solved?

Thank´s

Hi Aline,

Our development team is quite busy working on some very high priority issues. That's why I can't share the exact time in which this issue can be resolved. However, you'll be informed via this forum as we resolve this issue.

Thanks & Regards,

Do you have already a delivery date to solve this bug?

I have a productive envrironment and this kind of trouble isn´t confortable for the end users.

Hi Regina,

We have recently fixed the error in our hotfix 3.4.4.4. Kindly download the hotfix and test it at your end before we release the final version.

If you find any issues please do let us know the earliest possible.

Regards,

The issues you have found earlier (filed as 8867) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.