PDFsharp & MigraDoc Forum

PDFsharp - A .NET library for processing PDF & MigraDoc - Creating documents on the fly
It is currently Wed Oct 29, 2025 3:50 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules

Also see our new Tailored Support & Services site.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Jan 31, 2014 3:45 pm 
Offline

Joined: Fri Jan 31, 2014 3:34 pm
Posts: 2
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?


Top
 Profile  
Reply with quote  
PostPosted: Mon Feb 03, 2014 10:38 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3136
Location: Cologne, Germany
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?

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Mon Feb 03, 2014 12:31 pm 
Offline

Joined: Fri Jan 31, 2014 3:34 pm
Posts: 2
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 109 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group