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 Nov 24, 2015 2:07 pm

Hi

I have followed your tutorial (with the free library) to fill in a Arabic PDF form with Arabic content.

When I open the saved PDF in Foxit PDF reader, the field content looks like question marks. If I click each field, I then see the Arabic.

What am I doing wrong?

Andrew

ajtruckle
 
Posts: 10
Joined: Tue Nov 24, 2015 2:03 pm

Wed Nov 25, 2015 3:29 am

Hi Andrew,

Thanks for your interests in our Spire.PDF.
Please try the latest version Spire.PDF Pack(Hot Fix) Version:3.5.143. If the issue still exists, please share your pdf documents and code to help us do an investigation.

Thank you.

Best Regards,
Amy
E-iceblue support team
User avatar

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

Wed Nov 25, 2015 4:21 pm

Hi

Sadly it still behaves just the same. I can see Arabic when I click on the field. But otherwise it is the question marks.

The resulting pdf is attached.

Code: Select all
        private void button1_Click(object sender, EventArgs e)
        {
            //Create a pdf document
            PdfDocument doc = new PdfDocument();

            //Load from file
            doc.LoadFromFile(textBox1.Text);

            //Get form
            PdfFormWidget formWidget = doc.Form as PdfFormWidget;
            for (int i = 0; i < formWidget.FieldsWidget.List.Count; i++)
            {
                PdfField field = formWidget.FieldsWidget.List[i] as PdfField;

                //Fill the data for textBoxField
                if (field is PdfTextBoxFieldWidget)
                {
                    PdfTextBoxFieldWidget textBoxField = field as PdfTextBoxFieldWidget;
                    switch (textBoxField.Name)
                    {
                        case "Text1":
                            //textBoxName.Text = textBoxField.Text;
                            textBoxField.Text = textBoxName.Text;
                            break;
                        case "Text2":
                           // textBoxAssistant.Text = textBoxField.Text;
                            textBoxField.Text = textBoxAssistant.Text;
                            break;
                        case "Text3":
                            dateTimePicker.CustomFormat = "dd MMMM yyyy";
                            textBoxField.Text = dateTimePicker.Text;
                            break;
                        case "Text4":
                           // textBoxCounsel.Text = textBoxField.Text;
                            textBoxField.Text = textBoxCounsel.Text;
                            break;
                        case "Text10":
                            //textBoxOther.Text = textBoxField.Text;
                            textBoxField.Text = textBoxOther.Text;
                            break;
                    }
                }


                //Fill the data for checkBoxField
                if (field is PdfCheckBoxWidgetFieldWidget)
                {
                    PdfCheckBoxWidgetFieldWidget checkBoxField = field as PdfCheckBoxWidgetFieldWidget;
                    switch (checkBoxField.Name)
                    {
                        case "Check Box5":
                            checkBoxField.Checked = radioButton1.Checked;
                            break;
                        case "Check Box6":
                            checkBoxField.Checked = radioButton2.Checked;
                            break;
                        case "Check Box7":
                            checkBoxField.Checked = radioButton3.Checked;
                            break;
                        case "Check Box8":
                            checkBoxField.Checked = radioButton4.Checked;
                            break;
                        case "Check Box9":
                            checkBoxField.Checked = radioButton5.Checked;
                            break;
                        case "Check Box11":
                            checkBoxField.Checked = radioButton6.Checked;
                            break;
                        case "Check Box12":
                            checkBoxField.Checked = radioButton7.Checked;
                            break;
                        case "Check Box13":
                            checkBoxField.Checked = radioButton8.Checked;
                            break;
                    }
                }
            }

            //Save the document to file in PDF format
            doc.SaveToFile(textBox2.Text);
            doc.Close();
            MessageBox.Show("Done!");
        }


Please remove the attachment when you have downloaded it.
Last edited by ajtruckle on Mon Nov 30, 2015 5:42 pm, edited 1 time in total.

ajtruckle
 
Posts: 10
Joined: Tue Nov 24, 2015 2:03 pm

Wed Nov 25, 2015 5:18 pm

I was accidently using the old DLL files still. I have since tried with the new ones and it is still the same issue. In addition, it now has "evaluation text" at the top of the document which I did not have before.

ajtruckle
 
Posts: 10
Joined: Tue Nov 24, 2015 2:03 pm

Thu Nov 26, 2015 1:41 am

Hi,

Thanks for further information.
I have recreated the issue and forwarded it to our dev team. We will inform you when it is resolved.

Please kindly notice that the version Spire.PDF Pack(Hot Fix) Version:3.5.143 is commercial edition. Commercial edition supports more features than free edition.

Best Regards,
Amy
E-iceblue support team
User avatar

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

Thu Nov 26, 2015 5:57 am

Ok but please keep in mind I use free edition.

Why are the forum topic email notifications not working?

Andrew

ajtruckle
 
Posts: 10
Joined: Tue Nov 24, 2015 2:03 pm

Thu Nov 26, 2015 6:10 am

Hi Andrew,

Sorry that at present we don't have the forum topic email notifications. We will also inform you when the issue is resolved by e-mail.

Best Regards,
Amy
E-iceblue support team
User avatar

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

Sat Nov 28, 2015 6:32 am

I noticed this pertaining to iTextSharp:

http://stackoverflow.com/questions/1843 ... characters

It is also mentioned here:

http://sourceforge.net/projects/pdfform ... rce=navbar

So I wonder if it is a similar issue with Spire.PDF?

In addition, having looked over your forum, I am concerned that your fix will not be available in the free edition. I can't afford the paid edition.

Andrew

ajtruckle
 
Posts: 10
Joined: Tue Nov 24, 2015 2:03 pm

Mon Nov 30, 2015 2:52 am

Hello,

Our Dev team is looking into the issue, sorry that I don't clear the reason. Exactly, the fix in priority is available in the commercial version.

Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Wed Jul 26, 2017 6:54 pm

Was there no update on this? Even after over a year?

Thanks.

ajtruckle
 
Posts: 10
Joined: Tue Nov 24, 2015 2:03 pm

Thu Jul 27, 2017 1:45 am

Dear ajtruckle,

So sorry for the long silence.
The issue has been fixed, please download Spire.PDF Pack(Hot Fix) Version:3.9.226 and have a try.
If there is any question, please let us know.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Thu Jul 27, 2017 9:16 am

Hi !

Thanks for getting back to me. I have tried this hotfix and verify that it works. The resulting document is indeed no longer corrupt. Thanks.

How, with the free edition of the library can I prevent this at the top:

Remark.png


Also, since you have already seen the source PDF document, I am not too sure about the rules for the free library. It refers to 10 pages and 3 images? Given the PDF I have shown you can I use that up to 10 times for free?

Thank you for the clarification.

ajtruckle
 
Posts: 10
Joined: Tue Nov 24, 2015 2:03 pm

Thu Jul 27, 2017 9:29 am

Dear ajtruckle,

Thanks for your feedback.
The version I mentioned is commercial version, please note that all fixes and new features are only included in commercial version. And there is no any limitation in it.

Sorry that we don't have any plan to update the free version. Yet we could provided you with a temporary license file for one month to remove the warning message and have a better evaluation on our products. Please contact our sales team(sales@e-iceblue.com) to get it if you need.

If there is any question, welcome to get it back to us.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Thu Jul 27, 2017 10:54 am

I am afraid that I can't use your product then. It is simply too expensive for non-commercial user to obtain.

Sorry.

ajtruckle
 
Posts: 10
Joined: Tue Nov 24, 2015 2:03 pm

Fri Jul 28, 2017 1:55 am

Dear ajtruckle,

Sorry to hear that.
We provide a discount for non-commercial user, please contact our sales team(sales@e-iceblue.com) to get it.
If there is any question, please let us know.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.PDF