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

Centimeters / Millimeters et all...
https://forum.pdfsharp.net/viewtopic.php?f=2&t=987
Page 1 of 1

Author:  monq [ Sat Dec 12, 2009 6:58 pm ]
Post subject:  Centimeters / Millimeters et all...

Hi,

reading the documentation regarding PDFsharp, I have noticed that all unit references are for pixels. Now, having in mind that we are exporting for PDF: is there any way to relate lets say pixels to millimeters? I am not so interested in pixel precission - but exact metric precission in a high res PDF output...

Thanks in advance!

Author:  () => true [ Sun Dec 13, 2009 12:17 am ]
Post subject:  Re: Centimeters / Millimeters et all...

Hi!
monq wrote:
reading the documentation regarding PDFsharp, I have noticed that all unit references are for pixels.

Where did you read that?
All units are points, not pixels.
A point is 1/72 inch.
Use XUnit.FromMillimeter ...

Author:  monq [ Sun Dec 13, 2009 1:48 pm ]
Post subject:  Re: Centimeters / Millimeters et all...

That's excellent news, and my mistake!

Regards,
David

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