Scaled objects not draw on a page

Hi,
Found a problem with all scaled graphic objects. If some part of the no scaled object fall outside the drawing area of the page, the object is not draw even if the scaled objetc completely fit on the page.
Here the code to reproduce the problem:

PDFDocument pdfDoc = new PDFDocument();
IPDFFont pdfFont;

pdfFont = pdfDoc.Fonts.Add (Environment.GetEnvironmentVariable ("systemroot") + @"\Fonts\ARIAL.TTF");
pdfFont.Size = 12.0F;

IPDFPage firstPage = pdfDoc.Pages[0];

IPDFGraphicState DrawProp = pdfDoc.CreateGraphicState ();
RectangleF DimPos = new RectangleF (200, 30, 200, 30);

DrawProp.Scale (0.5F, 0.5F);

DimPos.Y = 700;
DrawProp.TextAlignment = TextAlignment.Left;
firstPage.Graphics.DrawRectangle (DimPos, DrawProp);
firstPage.Graphics.DrawMultiText (DimPos, "Hello World!", pdfFont, DrawProp);

DimPos.Y = 900;
DrawProp.TextAlignment = TextAlignment.Left;
firstPage.Graphics.DrawRectangle (DimPos, DrawProp);
firstPage.Graphics.DrawMultiText (DimPos, "Hello World!", pdfFont, DrawProp);

pdfDoc.Save("Sample.pdf");

The second rectangle and text are not draw because the no scaled Y position (900) fall outside the page, but the scaled Y position (900*0.5 = 450) is a valid position, so everything should be visible in a single page.

3 Replies

DK Dhivya K Syncfusion Team January 4, 2007 12:49 PM UTC

Hi Mario,

Thank you for your interest in Essential PDF.

Thank you for the code.This helped me to reproduce the issue with invisible scaled objects while it fits into the page.
It seem to be a bug. I have forwarded this issue to development team.

Thanks for bringing this issue into our notice.

Regards,
Dhivya.


DK Dhivya K Syncfusion Team January 30, 2007 04:27 AM UTC

Hi Mario,

Sorry for the delay in getting back to you. This issue[defect-3315] is fixed and will be available for our next release. Could you please create direct trac incident so that we can update you with the patch for this fix if you are interested?

Regards,
Dhivya.


AD Administrator Syncfusion Team February 3, 2007 07:39 AM UTC

Hi Mario,

This issue[defect-3315] is fixed and will be available for our next release.
Could you please open an incident in the direct trac with the forum id as the subject line if you are interested in patch?

http://www.syncfusion.com/Support/DirectTrac/logon.aspx

Thanks,
Balaji U

Loader.
Up arrow icon