We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Text printing vertical rather than horizontal using Aspose.Pdf.Kit

I am using Aspose.Pdf.Kit 3.4.0.0.

When I use the code below it does not print in the lower right hand of the page, but the text is vertical rather than horizontal.

I am not sure why this is happening, can you explain to me?

Here is the code I am using:

Aspose.Pdf.Kit.License license = new Aspose.Pdf.Kit.License();

license.SetLicense("C:\\users\\Aspose.Total.lic");

string sSource = @"c:\testing\source.pdf";

string sDestination = @"c:\testing\destination.pdf";

PdfFileInfo fileInfo = new PdfFileInfo(strTempDoc);

float height = fileInfo.GetPageHeight(1);

float width = fileInfo.GetPageWidth(1);

//int rotation = fileInfo.GetPageRotation(1); //get the page rotation

PdfFileMend mendor = new PdfFileMend(sSource, sDestination);

FormattedText fTxt = new FormattedText("PdfFileMend testing! 0 rotation. Line 0", new FontColor(0, 200, 0), Aspose.Pdf.Kit.FontStyle.TimesRoman, EncodingType.Winansi, false, 12);

fTxt.AddNewLineText("PdfFileMend testing! 0 rotation. Line 1");

fTxt.AddNewLineText("PdfFileMend testing! 0 rotation. Line 2");

fTxt.AddNewLineText("PdfFileMend testing! 0 rotation. Line 3");

fTxt.AddNewLineText("PdfFileMend testing! 0 rotation. Line 4");

fTxt.AddNewLineText("PdfFileMend testing! 0 rotation. Line 5");

fTxt.AddNewLineText("PdfFileMend testing! 0 rotation. Line 6");

fTxt.AddNewLineText("PdfFileMend testing! 0 rotation. Line 7");

mendor.AddText(fTxt, 1, width - 200, 100, width - 10, 10);

mendor.Close();

Hi Scott,

I have reproduced this problem at my end and logged it as PDFKITNET-28198 in our issue tracking system. Our team will look into this issue and you’ll be updated via this forum thread once it is resolved.

We’re sorry for the inconvenience.
Regards,

Do you know if this will be looked at soon?

Thanks!

Scott

Hi Scott,

I have asked our team to share the ETA of this issue. You’ll be updated as soon as the response is received.

Regards,

Have you heard back from your team?

Is there any way I can escalate this ticket? In the next week or so we will be purchasing two developer oem licenses of Aspose.

Thanks!

Scott

Hi Scott,

I’m sorry to inform you that the ETA of this issue is not yet available. Our team is still investigating the issue and you’ll be updated with the ETA the earliest possible. Please spare us some time for the investigation.

We’re sorry for the inconvenience and appreciate your cooperation.
Regards,

Hi Scott,

I would like to share with you that the fix for this issue is expected in the release due early September 2011. You’ll be notified via this forum thread once the release is published.

If you find any further questions, please do let us know.
Regards,

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


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