PDFsharp & MigraDoc Forum
https://forum.pdfsharp.net/

Bug? Cant draw on right edge of page
https://forum.pdfsharp.net/viewtopic.php?f=2&t=2724
Page 1 of 1

Author:  okunnig [ Fri Jan 31, 2014 3:45 pm ]
Post subject:  Bug? Cant draw on right edge of page

Hi,

I've been trying to draw a filled rectangle over an entire page from the left to the right edge. I've tried both using xgraphics drawrectangle and by using a textframe in migradoc. Positioning is correct, size as well as it spans over the entire page. However, I noticed a tiny (~1px) white border on the right side of the page which was not covered by the drawn rectangle. I have also been trying to draw rectangles larger than the page with the same results.

In other words, I cannot draw over the entire page as there will always be a tiny white edge left.
Any ideas?

Author:  Thomas Hoevel [ Mon Feb 03, 2014 10:38 am ]
Post subject:  Re: Bug? Cant draw on right edge of page

How do you view PDF files? Could this be a limitation of the PDF viewer?

Is the gap always 1 px, even if you change the zoom level?

Author:  okunnig [ Mon Feb 03, 2014 12:31 pm ]
Post subject:  Re: Bug? Cant draw on right edge of page

Hello, thanks for answering!

I viewed it in Adobe Acrobat Reader X version 10.1.8. As you suggest, it may be an issue with the viewer because of the following two reasons:
    - The error did not appear in the built in pdf-viewer in chrome (no idea what it uses for rendering)
    - Suddenly today, in the same version of Acrobat Reader, the error did not appear again

It did appear in most different zooming levels, but not all as I remember from last friday. And yes, it always showed up as a 1 pixel broad white border, even when zooming out.
Since I cannot make the issue reappear now, although using the same code when creating the document, this probably is a rendering issue rather than an issue with migradoc/pdfsharp.

Weird though

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/