View previous topic :: View next topic |
Author |
Message |
erik_kallen
Joined: 11 Mar 2009 Posts: 2
|
Posted: Wed Mar 11, 2009 6:20 pm Post subject: Location of top-left corner |
|
|
Hi
I'm using PDFSharp to modify an already existing PDF document. For some reason, The top-left visible corner of each page is around location (3, 3) millimeters. I only measured this distance, how can I determine it programmatically? |
|
Back to top |
|
|
Thomas Hoevel
Joined: 16 Oct 2006 Posts: 387 Location: Cologne, Germany
|
Posted: Thu Mar 12, 2009 8:43 am Post subject: |
|
|
Hi!
I don't know for sure, but here are some PdfPage properties you could look at:
- TrimMargins
- MediaBox
- CropBox
- BleedBox
- ArtBox
- TrimBox
_________________ Regards
Thomas Hoevel
PDFsharp Team |
|
Back to top |
|
|
erik_kallen
Joined: 11 Mar 2009 Posts: 2
|
Posted: Thu Mar 12, 2009 9:42 am Post subject: |
|
|
Thanks a lot! CropBox was the culprit.
In which unit is the CropBox measured? In my document, it appears to be in points, is it always like this? Or is there a page or document property which defines the unit? |
|
Back to top |
|
|
Thomas Hoevel
Joined: 16 Oct 2006 Posts: 387 Location: Cologne, Germany
|
Posted: Thu Mar 12, 2009 10:22 am Post subject: |
|
|
erik_kallen wrote: | In which unit is the CropBox measured? |
Don't ask me about PDF details ...
I think PDF measures everything in Points.
At least CropBox &c. are measured in Points. _________________ Regards
Thomas Hoevel
PDFsharp Team |
|
Back to top |
|
|
|