The resulting PDF isn't scaling correctly. The PDF is 10 times bigger then the original, but the content keeps the original size.
I'm using a Client with german localisation, maybe it's a digit conversion Problem.
*Edit*
I've found the solution in another thread. You have to Change the culture.
- Code: Select all
CultureInfo cc = Thread.CurrentThread.CurrentCulture;
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
PdfDocument doc = new PdfDocument();
doc.LoadFromXPS(FilePath + "tmp (2).xps");
doc.SaveToFile("8428result.PDF", FileFormat.PDF);
Thread.CurrentThread.CurrentCulture = cc;