hi guys,
i have a question to scanned PDF. I hope somebody here can help me find a way to solve this problem.
i imported a scanned PDF (1 image, no other content):
page.
Size: Undefined
page.
Orientation: Landscape
page.
Width: {595pt}
page.Width.Centimeter: 20.990
page.
Height: {837pt}
page.Height.Centimeter: 295.275
page.
Rotate: 90
(before Orientation has been set, the Width and Height are swapped! see below!)
Its orientation is Landscape, but it is Portrait in every viewer.
So far no problem, but if i modify it (add watermark) and save,
its cutted to a square of 210x210mm (and the water mark on the bottom right isnt visible of course!)
I debugged it and i see that the Width and Height depends on the Orientation, but why?
Any ideas what im doing wrong? Or is it a bug?
Its strange that there is a rotation since its not landscape. but i think thats the way this old scanner worked in the 90's.
Any idea how to convert this type of PDF to "standard"?
Thanks in advance and BR
ToniM
edit_001:the images are of type
CCITTFaxDecode but unfortunatelly it seems there is no support from PdfSharp up to now ...
(
http://forum.pdfsharp.net/viewtopic.php?f=4&t=82)