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 Oct 12, 2015 9:10 am

Dear Support,

I have 2 pdf documents that are causing us troubles. Using the following code:
Code: Select all
static void Main(string[] args)
        {
            try
            {
                TestDocA();
            }
            catch( Exception ex)
            {
                Console.Write(ex.ToString());
            }

            try
            {
                TestDocB();
            }
            catch (Exception ex)
            {
                Console.Write(ex.ToString());
            }
            Console.ReadKey();
        }

        private static void TestDocA()
        {
            PdfDocument doca = new PdfDocument(@"C:\TestProd\FormatException.pdf");
            PdfDocument mergedDoc = new PdfDocument();
            mergedDoc.InsertPageRange(doca, 0, doca.Pages.Count - 1);
        }

        private static void TestDocB()
        {
            PdfDocument docb = new PdfDocument(@"C:\TestProd\Fatal Error.pdf");
        }


Executing TestDocA results in the following error:

Code: Select all
System.FormatException: Input string was not in a correct format.
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at Spire.Pdf.Widget.PdfSignatureFieldWidget.ᜀ(String A_0)
   at Spire.Pdf.Widget.PdfSignatureFieldWidget.ᜀ(sprᢻ A_0)
   at Spire.Pdf.Widget.PdfSignatureFieldWidget..ctor(sprῶ A_0, spr᪬ A_1)
   at Spire.Pdf.Widget.PdfFormFieldWidgetCollection.ᜆ(sprῶ A_0, spr᪬ A_1)
   at Spire.Pdf.Widget.PdfFormFieldWidgetCollection.ᜀ(Int32 A_0)
   at Spire.Pdf.Widget.PdfFormFieldWidgetCollection..ctor(PdfFormWidget A_0)
   at Spire.Pdf.Widget.PdfFormWidget.get_FieldsWidget()
   at Spire.Pdf.PdfPageBase.ᜀ(sprᢻ A_0)
   at Spire.Pdf.PdfPageBase.ᜓ()
   at Spire.Pdf.PdfPageWidget..ctor(PdfDocumentBase A_0, spr᪬ A_1, sprῶ A_2)
   at Spire.Pdf.Widget.PdfPageCollection.ᜄ(sprῶ A_0)
   at spr᪬.ᜀ(sprᢻ A_0)
   at spr᪬.ᜄ(sprᢻ A_0)
   at spr᧙.ᜂ()
   at spr᧙.ᜀ()
   at spr᧙.ᜅ()
   at spr᪬.ᜄ(sprᢻ A_0)
   at Spire.Pdf.Widget.PdfPageCollection.ᜀ(Int32 A_0, Int32& A_1, Boolean A_2)
   at Spire.Pdf.Widget.PdfPageCollection.ᜀ(Int32 A_0)
   at Spire.Pdf.PdfDocumentBase.ImportPageRange(PdfDocumentBase ldDoc, Int32 startIndex, Int32 endIndex)


TestDocB throws the following:
Code: Select all
System.Exception: Fatal Error at 813.

   at spr᭄.ᜀ(YYError A_0, Boolean A_1)
   at spr᭄.ᜌ()
   at sprᩤ.ᜋ()
   at sprᩤ.ᜐ()
   at sprទ.ᜀ(sprᢻ A_0)
   at spr᪬.ᜄ(sprᢻ A_0)
   at spr᧙.ᜂ()
   at spr᧙.ᜀ()
   at spr᧙.ᜅ()
   at spr᪬.ᜂ(sprᢻ A_0)
   at sprᣩ.ᜃ()
   at sprᣩ.ᜁ(Stream A_0)
   at Spire.Pdf.PdfDocument..ctor(String filename)


For privacy reasons I am not allowed to share these pdf documents on a public forum, do you have a secure upload site or FTP site to get the documents to you for further investigation?

Kind regards,

Sikke Kooistra

sikke.kooistra@avanade.com
 
Posts: 33
Joined: Fri Jun 27, 2014 1:39 pm

Tue Oct 13, 2015 2:35 am

Hi,

Thanks for your inquiry.
Please send your pdf files to amy.zhao@e-iceblue.com or support@e-iceblue.com.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2772
Joined: Wed Jun 27, 2012 8:50 am

Tue Oct 13, 2015 7:36 am

Hi Amy,

Thank you, I will let our customer send the pdf's shortly. In the meantime, we found another pdf that causes Spire.pdf to crash, this pdf is also included in the mail:
Code: Select all
  private static void TestDocC()
        {
            PdfDocument docb = new PdfDocument(@"C:\TestProd\InvalidFormat.pdf");
        }


Code: Select all
Spire.Pdf.Exceptions.PdfDocumentException: Invalid/Unknown/Unsupported format
   at sprῨ.ᜀ(Int32 A_0)
   at sprῨ.ᜀ(String A_0, String A_1)
   at sprទ..ctor(Stream A_0, spr᪬ A_1)
   at spr᪬..ctor(Stream A_0)
   at sprᣩ.ᜁ(Stream A_0)
   at Spire.Pdf.PdfDocument..ctor(String filename)


Please note that all attached pdf files open fine in Acrobat XI.

sikke.kooistra@avanade.com
 
Posts: 33
Joined: Fri Jun 27, 2014 1:39 pm

Tue Oct 13, 2015 8:11 am

Hi Amy,

Our customer indicates he has emailed the files. Did you receive them?

Regards,

Sikke

sikke.kooistra@avanade.com
 
Posts: 33
Joined: Fri Jun 27, 2014 1:39 pm

Tue Oct 13, 2015 8:16 am

Hi Sikke,

I don't receive them. Please send them to support@e-iceblue.com again.
Thank you.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2772
Joined: Wed Jun 27, 2012 8:50 am

Tue Oct 13, 2015 8:23 am

Hi Amy,

The e-mail got bounced, the customer is sending it again (this time to support@e-iceblue.com)

Did you receive it now?

Regards,

Sikke
Last edited by sikke.kooistra@avanade.com on Tue Oct 13, 2015 11:02 am, edited 1 time in total.

sikke.kooistra@avanade.com
 
Posts: 33
Joined: Fri Jun 27, 2014 1:39 pm

Tue Oct 13, 2015 8:26 am

Hi Sikke,

I have received your e-mail. I will test them at once and then give you a reply later.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2772
Joined: Wed Jun 27, 2012 8:50 am

Tue Oct 13, 2015 8:45 am

Hi Sikke,

I have recreated your issues and posted them to our dev team. We will tell you at once when there is any update.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2772
Joined: Wed Jun 27, 2012 8:50 am

Tue Oct 20, 2015 6:32 pm

Hi Amy,

Any news on this issue?

Kind regards,

Sikke

sikke.kooistra@avanade.com
 
Posts: 33
Joined: Fri Jun 27, 2014 1:39 pm

Wed Oct 21, 2015 2:14 am

Hi,

Thanks for your inquiry.
The issues in these two documents(Fatal Error.pdf and InvalidFormat.pdf) have been fixed, our dev team is working on the third document(FormatException.pdf). We will inform you when all are fixed and new package is released.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2772
Joined: Wed Jun 27, 2012 8:50 am

Tue Oct 27, 2015 7:50 am

Hi Amy,

Any progress on the issue? We are really running in to these issues on a daily basis in our production environment, causing us a lot of extra work.

Kind regards,

Sikke

sikke.kooistra@avanade.com
 
Posts: 33
Joined: Fri Jun 27, 2014 1:39 pm

Tue Oct 27, 2015 8:34 am

Hi Sikke,

The issues have been resolved. Now there is a new package includes the fixes, but it is not a releasing version.
The downloading link is http://www.e-iceblue.com/downloads/Temp ... .5.117.zip.

For the issue:http://www.e-iceblue.com/forum/merging-certain-pdf-s-result-in-page-height-of-1-1-mm-t5623.html
It also has been resolved, but its fix is not in the temporary version.

We will build a new released version will includes the fixes of all issues and then inform you when it is ok.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2772
Joined: Wed Jun 27, 2012 8:50 am

Thu Oct 29, 2015 6:26 am

Hi Sikke,

Thanks for waiting.
New version has been released. Welcome to download and test Spire.PDF Pack(Hot Fix) Version:3.5.143.
The downloading link is http://www.e-iceblue.com/Download/downl ... t-now.html.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2772
Joined: Wed Jun 27, 2012 8:50 am

Thu Oct 29, 2015 12:02 pm

Hi Amy,

Did a first quick check on the problem files, they now work great. I will do some more extensive testing on our production data and will report if I find any issues.

Kind regards,

Sikke

sikke.kooistra@avanade.com
 
Posts: 33
Joined: Fri Jun 27, 2014 1:39 pm

Fri Oct 30, 2015 1:48 am

Hi Sikke,

Thanks for your message.
Please feel free to write to us if you have any issues. We are here to help you.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2772
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.PDF