PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.de/

Page size is changed when saving scanned document
http://forum.pdfsharp.de/viewtopic.php?f=2&t=2938
Page 1 of 1

Author:  maxl49 [ Mon Sep 29, 2014 6:36 pm ]
Post subject:  Page size is changed when saving scanned document

Hi,

I don't know if i'm doing something wrong or if this is a bug, but I have a problem when saving a pdf document that comes from a kyocera scanner. The document page size gets resseted to 8.5 by 8.5 even tough the source document is 8.5 by 11.0.

I'm using pdfsharp 1.32.2608. Simple code to reproduce the problem :
Code:
         Dim doc As Pdf.PdfDocument = Pdf.IO.PdfReader.Open(p.localName, Pdf.IO.PdfDocumentOpenMode.Modify)

         doc.Save(Path.GetDirectoryName(p.localName) & "\" & Path.GetFileNameWithoutExtension(p.localName) & "2.pdf")

          doc.Close()

          doc.Dispose()

I've attached a zip file with both PDFs, source and ouput ...

Thanks in advance !

Max

Attachments:
test.zip [220.07 KiB]
Downloaded 526 times

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