We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Scaled objects not draw on a page

Thread ID:

Created:

Updated:

Platform:

Replies:

54182 Jan 3,2007 01:43 PM UTC Feb 3,2007 07:39 AM UTC WinForms 3
loading
Tags: PDF
Mario Bianchi
Asked On January 3, 2007 01:43 PM UTC

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.

Dhivya K [Syncfusion]
Replied On 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.

Dhivya K [Syncfusion]
Replied On 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.

Administrator [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;