Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Mon Sep 05, 2016 11:52 am

Hi, I'm trying to convert an XPS file to a PDF file.
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;

Dayton
 
Posts: 4
Joined: Mon Sep 05, 2016 10:32 am

Tue Sep 06, 2016 9:17 am

Hi Dayton,

Thanks for your feedback. Our latest version of Spire.PDF(Spire.PDF Pack(Hot Fix) Version:3.7.292) has resolved this issuse. Please download and try it.

Sincerely,
Lucy
E-iceblue support team
User avatar

Lucy
 
Posts: 30
Joined: Wed Aug 03, 2016 1:59 am

Wed Sep 07, 2016 8:13 am

Hi Dayton,

Have you tried the latest hotfix? Is your issue resolved with it? Could you please give me some feedback at your convenience?

Thanks,
Lucy
E-iceblue support team
User avatar

Lucy
 
Posts: 30
Joined: Wed Aug 03, 2016 1:59 am

Fri Sep 09, 2016 8:31 am

Hi Lucy,

we've tested the new hotfix and it solved the Problem.
Thanks again for your help.

Dayton
 
Posts: 4
Joined: Mon Sep 05, 2016 10:32 am

Fri Sep 09, 2016 8:44 am

Hi Dayton,

Thanks for your response. If you have some further problems, welcome to feel free to contact us.

Sincerely,
Lucy
E-iceblue support team
User avatar

Lucy
 
Posts: 30
Joined: Wed Aug 03, 2016 1:59 am

Return to Spire.PDF