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.

Tue Oct 31, 2017 11:07 pm

I am having issues printing an XPS document produced by using Spire PDF to load a PDF from file, then instantly save it as an XPS document using PdfDocument.SaveToFile(*filepath*, FileFormat.XPS). Whenever I open the resultant XPS file in XPS Viewer it appears normal, however, when I print the file, the font becomes garbled and incomprehensible. The only code I am using is this:
Code: Select all
Spire.Pdf.PdfDocument doc = new Spire.Pdf.PdfDocument();
            doc.LoadFromFile(file);
            doc.SaveToFile("C:\\Users\\tomih\\Documents\\PIL_Printer\\testies.xps", FileFormat.XPS);

I have also attached the original PDF document and a photo of the printing result.

milltownham
 
Posts: 29
Joined: Wed Aug 02, 2017 2:52 pm

Wed Nov 01, 2017 3:46 am

Hello Thomas,

Thanks for your inquiry. I have noticed the issue and logged it in our bug tracking system. Once it's fixed, we will inform you immediately.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Wed Nov 01, 2017 8:55 am

Could you give me an idea of how much time that might take? I need a fix as soon as possible because I have finished the rest of my application and it is being published very soon.

milltownham
 
Posts: 29
Joined: Wed Aug 02, 2017 2:52 pm

Wed Nov 01, 2017 9:41 am

Hello Thomas,

I am sorry I can't give you an estimated time at present. However I have requested our development team to share an ETA at their earliest. We will update you as soon as we get a feedback.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Thu Nov 30, 2017 7:04 pm

Has any progress been made on this issue? It has now been a month since I posted my original query.

milltownham
 
Posts: 29
Joined: Wed Aug 02, 2017 2:52 pm

Fri Dec 01, 2017 2:09 am

Hello Thomas,

Sorry for the long silence. The issue had been resolved, but we met a strange issue when testing that it could not pass on a part of test machines. Please spare us some time. If any good news, we will let you know.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Fri Dec 01, 2017 11:31 am

Okay, thanks for the update.

milltownham
 
Posts: 29
Joined: Wed Aug 02, 2017 2:52 pm

Thu Dec 28, 2017 12:35 am

Anymore progress on this issue? I would really like to complete and release my program ASAP and it has been 2 months now since I submitted my problem.

milltownham
 
Posts: 29
Joined: Wed Aug 02, 2017 2:52 pm

Thu Dec 28, 2017 7:06 am

Hello Thomas,

I am sorry the issue has not been resolved yet due to the complexity. Considering your emergency, I have urged our DEV team and given the highest priority to the issue. Once it's fixed, we will inform you immediately.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Thu Feb 15, 2018 2:24 pm

Hi everyone.
Any update about this issue?

I'm trying to print like this
Code: Select all
 
MemoryStream ms = new MemoryStream();
Spire.Pdf.PdfDocument dc = new Spire.Pdf.PdfDocument();
dc.LoadFromFile(stickerFolderPath);
dc.SaveToStream(ms, FileFormat.XPS);
ms.Position = 0;
XpsPrintHelper.Print(ms, printerName, "PrintBatchSticker", true);

and the problem is that my fonts are completely destroyed.
Does anyone know why it can be and what the solution is?

Thank you in advance

jenka_jmenka
 
Posts: 1
Joined: Fri Jul 08, 2016 7:35 am

Fri Feb 16, 2018 2:16 am

Hello,

Thanks for your inquiry.
Could you please share your sample pdf file to help us look into it?

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Wed Mar 07, 2018 7:55 am

Please tell me this issue is nearly fixed. It’s been more than 4 months now that you have supposedly been working on it.

milltownham
 
Posts: 29
Joined: Wed Aug 02, 2017 2:52 pm

Wed Mar 07, 2018 9:13 am

Hello milltownham,

Sorry for the long silence. If generating the xps file on a 32bit machine, the print result is OK. Now the problem is the xps file that generated on some 64bit machines. If possible, please use a 32bit machine instead of 64bit to generate the xps file. We have not found a solution yet due to the complexity. We will keep investigating it. If there is any good news, we will inform you immediately.

Best regards,
Simon
E-icelbue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Wed Mar 07, 2018 1:51 pm

Would there be any way for me to run the program on any user PCs as if they were 32 bit so that the print output is correct?

milltownham
 
Posts: 29
Joined: Wed Aug 02, 2017 2:52 pm

Thu Mar 08, 2018 5:59 am

Hello milltownham ,

I am sorry it's not available to do so. If we find any workaround, we will let you know.

Best regards,
Simon
E-icelbue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Return to Spire.PDF

cron