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 Mar 17, 2015 3:42 pm

Hi,

I encountered an error when I try to print a PDF document with this code:

PdfDocument doc = new PdfDocument();
doc.LoadFromFile(@"c:\temp\a4.pdf");
PrintDocument pd = new PrintDocument();
pd = doc.PrintDocument;

pd.Print();

pd.Dispose();

doc.Close();

I received this error:

Source=System.Drawing
StackTrace:
à System.Drawing.Drawing2D.GraphicsPath.GetLastPoint()
à Spire.Pdf.General.Render.Font.Type1CFont.ᜀ(ᜀ A_0, GraphicsPath A_1, FlPoint A_2)
à Spire.Pdf.General.Render.Font.Type1CFont.ᜀ(Int32 A_0, Int32 A_1)
à Spire.Pdf.General.Render.Font.Type1CFont.GetOutline(String name, Single width, TypeEncodingCmap type)
à Spire.Pdf.General.Render.Font.OutlineFont.GetGlyph(Char src, String name, TypeEncodingCmap type)
à Spire.Pdf.General.Render.Font.PDFFontViewer.GetCachedGlyph(Char src, String name, TypeEncodingCmap type)
à Spire.Pdf.General.Render.Font.PDFFontEncoding.ᜁ(PDFFontViewer A_0, Char A_1)
à Spire.Pdf.General.Render.Font.PDFFontEncoding.GetGlyphs(PDFFontViewer font, String text)
à Spire.Pdf.General.Render.Font.PDFFontViewer.GetGlyphs(String text)
à spr᭖.ᜀ(spr᪠ A_0, spr᱁ A_1, Graphics A_2, PointF A_3)
à spr᱁.ᜁ(Graphics A_0, spr᪠ A_1, Boolean A_2)
à spr᪠.ᜀ(String A_0, spr᭖ A_1, String A_2, Boolean A_3)
à spr᪠.ᜀ(String[] A_0, String A_1)
à spr᪠.ᜀ(sprᯞ A_0)
à spr᪠.ᜆ(Boolean A_0)
à spr᪠.᜛()
à Spire.Pdf.PdfDocument.ᜀ(Object A_0)
à Spire.Pdf.PdfDocument.OnPrintPage(Object sender, PrintPageEventArgs e)
à System.Drawing.Printing.PrintController.PrintLoop(PrintDocument document)
à System.Drawing.Printing.PrintController.Print(PrintDocument document)
à System.Drawing.Printing.PrintDocument.Print()
à ConsoleApplication3.Program.Main(String[] args) dans c:\Users\philippe\Documents\Visual Studio 2013\Projects\ConsoleApplication3\ConsoleApplication3\Program.cs:ligne 19
à System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
à Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
à System.Threading.ThreadHelper.ThreadStart()
InnerException:

I upload the PDF document.

Can you help me?

Regards,

Philippe

philuc2015
 
Posts: 7
Joined: Tue Mar 17, 2015 3:28 pm

Wed Mar 18, 2015 4:38 am

Hello,

Thanks for your inquiry.
I have failed to reproduce your issue with the latest version of Spire.PDF. I can print a document normally . Please download Spire.PDF Pack version:3.2.102 from the following link and try again:
http://www.e-iceblue.com/Download/downl ... t-now.html
If the issue still happens, please provide your sample document(a4.pdf) for our testing.

Best Regards,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Tue Mar 24, 2015 8:42 am

Hi,

Good news, the version 3.2.151.5035 solve this issue.

But I see that the characters € (euro) is not print.

I have you an idea about this problem?

Regards,

Philippe

PS: a4.pdf file with euro issue (in a4.zip)
a4.zip

philuc2015
 
Posts: 7
Joined: Tue Mar 17, 2015 3:28 pm

Tue Mar 24, 2015 9:27 am

Hello

Thanks for your feedback.
I have reproduced your issue and posted it to our dev team. We will inform you when it is been resolved.

Best Regards,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Wed Mar 25, 2015 7:51 am

Hi,

For your information I have the same problem (€ missing) with the save to image functionality.

Regards,

Philipppe

philuc2015
 
Posts: 7
Joined: Tue Mar 17, 2015 3:28 pm

Wed Mar 25, 2015 9:48 am

Hello,

Thanks for your feedback.
I have reproduced your issue. And we will inform you when it is been resolved.

Best Regards,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Thu Mar 26, 2015 6:35 am

Hi,

Have you an idea when I hope a new version of your product with this issue solved?

Regards,

Philippe

philuc2015
 
Posts: 7
Joined: Tue Mar 17, 2015 3:28 pm

Thu Mar 26, 2015 8:12 am

Hello,

Sorry that I can't give you the established time. Our Dev team is working on this issue, once the new version is released, we will let you know immediately.

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Thu Apr 02, 2015 7:43 am

Hello,

Now the issue has been resolved, and the newest hotfix of Spire.Pdf has been released. Please download the Spire. PDF Pack(Hot Fix) version:3.2.165 from the following link and have a try:
http://www.e-iceblue.com/Download/downl ... t-now.html
If there are any questions, welcome to get it back to us.

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Fri Apr 03, 2015 7:10 am

Hello,

Have you tried the newest hotfix? Has your issue been resolved? Could you please give us some feedback?

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Fri Apr 17, 2015 6:31 am

Hi,

Sorry for delay I just back from my holiday.

All seems ok now the € characters is printed.

Thanks,

Philippe

philuc2015
 
Posts: 7
Joined: Tue Mar 17, 2015 3:28 pm

Return to Spire.PDF