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 15, 2016 11:40 pm

This is a pre-sales question. I have a requirement to:

1) Search and replace text (Company name)
2) Search for a placeholder and insert image (Company Logo)
3) Secure the resulting pdf with a password so it can't be changed
4) Read form fields from a pdf.

Can Spire PDF.net do these things?

HELIA
 
Posts: 3
Joined: Tue Nov 15, 2016 11:36 pm

Wed Nov 16, 2016 1:58 am

Dear HELIA,

Thanks for your inquiry.
1) Here is sample code for your reference.
Code: Select all
            PdfDocument doc = new PdfDocument(@"ReplaceText.pdf");
            PdfPageBase page =  doc.Pages[0];
            Dictionary<string, string> dictionary = new Dictionary<string,string>();
            dictionary.Add("hello", "Rep");
            FintTextInPDFAndReplaceIt(doc, dictionary);
            doc.SaveToFile("5845result.pdf");

        }
        public static void FintTextInPDFAndReplaceIt(PdfDocument documents, Dictionary<string, string> dictionary)
        {
            PdfTextFind[] result = null;
            foreach (var word in dictionary)
            {
                foreach (PdfPageBase page in documents.Pages)
                {
                    result = page.FindText(word.Key).Finds;
                    foreach (PdfTextFind find in result)
                    {       
                         //replace word in pdf
                        find.ApplyRecoverString(word.Value, System.Drawing.Color.White,true);
                    }
                }
            }
        }

2) Sorry that Spire.PDF doesn't support this.
3) Here is a guide for your kinde reference.
http://www.e-iceblue.com/Tutorials/Spir ... B.NET.html
4)Guide for reference.
http://www.e-iceblue.com/Tutorials/Spir ... ith-C.html
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 Nov 17, 2016 6:33 am

Thank you...

Re #2, Placing an image in the pdf is a requirement. Does Spire.pdf allow another method of placing an image/logo in pdf?

HELIA
 
Posts: 3
Joined: Tue Nov 15, 2016 11:36 pm

Thu Nov 17, 2016 6:56 am

Dear HELIA,

Thanks for your response.
Spire.PDF supports to place image,here is method for your reference.
http://www.e-iceblue.com/Tutorials/Spir ... B.NET.html
If there is any qeustion, 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

Fri Nov 18, 2016 9:16 am

Dear HELIA,

How is the issue now ? Could you please give us some feedback at your convenience ?

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Fri Nov 18, 2016 2:44 pm

Betsy, What is the difference between the OEM and non-oem license choices at the checkout?

HELIA
 
Posts: 3
Joined: Tue Nov 15, 2016 11:36 pm

Mon Nov 21, 2016 2:31 am

Dear HELIA,

Sorry for late reply as weekend.
Please note that the OEM license subscription enables unlimitated Geography Location that deploy your applications. Non-OEM subscripption has limitation on the number of Geography Location.
Please check the detailed license policy as below:
http://www.e-iceblue.com/Misc/purchase-policies.html
If there is any question about the license, please feel free to contact our sales team([email protected]).

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Return to Spire.PDF