Hi!
When I use this code, to create an empty PDF file (2013Q3SP1):
and look at test.pdf I get
/MediaBox [0 0 612 792]
This is OK for letter format, which is the default.
But when I set the size to A4:
the Mediabox looks like this
/MediaBox [0 0 594.75 842.25]
I cannot find an official reference which is the correct size, but when I do a google search with https://www.google.de/search?q="%2FMediaBox+%5B0+0+594.75+842.25%5D" I just get one page of results.But if I use https://www.google.de/search?q=%2FMediaBox+%5B0+0+595+842%5D to search, I get hundreds of pages with this result.
Could you check, which is the correct value and If /MediaBox [0 0 595 842] is the correct one, how to fix it?
Thanks
Mike
When I use this code, to create an empty PDF file (2013Q3SP1):
var filename =
"C:\\temp\\test.pdf"
;
var doc =
new
Telerik.Windows.Documents.Model.RadDocument();
var stream =
new
FileStream(filename, FileMode.Create);
var pdfExp =
new
Telerik.Windows.Documents.FormatProviders.Pdf.PdfFormatProvider();
pdfExp.Export(doc, stream);
stream.Close();
and look at test.pdf I get
/MediaBox [0 0 612 792]
This is OK for letter format, which is the default.
But when I set the size to A4:
doc.SectionDefaultPageSize = Telerik.Windows.Documents.Model.PaperTypeConverter.ToSize(Telerik.Windows.Documents.Model.PaperTypes.A4);
pdfExp.Export(doc, stream);
stream.Close();
the Mediabox looks like this
/MediaBox [0 0 594.75 842.25]
I cannot find an official reference which is the correct size, but when I do a google search with https://www.google.de/search?q="%2FMediaBox+%5B0+0+594.75+842.25%5D" I just get one page of results.But if I use https://www.google.de/search?q=%2FMediaBox+%5B0+0+595+842%5D to search, I get hundreds of pages with this result.
Could you check, which is the correct value and If /MediaBox [0 0 595 842] is the correct one, how to fix it?
Thanks
Mike