We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Insert Multiple PDF Files at different pages of a PDF

This is the continuation of the following topic:

Currently, I am using evaluation copy of asp.pdf. We will get the license version soon.

I am also seeing issues with searching text in PDF. It searches first 2 words in the list correctly but not the rest. Is it due to the evaluation copy ?

Here is the code:

foreach (var word in lstWords)
{

            // construct the marker
            string marker = word;

            TextFragmentAbsorber textFragmentAbsorber = new TextFragmentAbsorber(marker);

            // Accept the absorber for all the pages 
            pdfDocument.Pages.Accept(textFragmentAbsorber);

            // Get the extracted text fragments 
            TextFragmentCollection textFragmentCollection = textFragmentAbsorber.TextFragments;

            // Loop through the fragments 
            foreach (TextFragment textFragment in textFragmentCollection)
            {
                // store the page number
                var pageNumber = textFragment.Page.Number;

            }

}

Also, I have tried the sample project you guys sent:

(At the bottom)

It is working as I explained earlier :

// count should be 6 as Aspose couldn’t insert the 4th page
var pageCount = pdfDocument.Pages.Count;

// this line will throw exception of type ‘System.IndexOutOfRangeException’
var page5 = pdfDocument.Pages[5];

Is it because I am using evaluation copy of aspose.pdf ?

Please let me know
Thanks
Imran

It looks like it is due to the evaluation copy:

https://docs.aspose.com/display/pdfnet/Licensing

We have put a request to get the Aspose.PDF license. I am not sure how much time it will take But we also have Aspose.Word and Aspose.Barcode license for years.

Is it possible to give us a real version with an expiring key until we get the license ?

Please let me know
Thanks
Imran

Hi Imran,

Thank you for posting in the new forum. You are right because it is due to the evaluation version. You can get a 30 day temporary license for the testing purposes from the purchase portal and its option is available in step 4. The online portal sends a temporary license immediately in an email. Please also refer to this helping link: Apply License to Aspose.Pdf for .NET API.

Furthermore, if the online portal is not sending you a license file, then please contact with the sales team. You can post a request in the Aspose.Purchase forum. Our sales team will assist you there.

Will there be any functionality limitations in the temporary license ? Like evaluation copy has ?

Hi Imran,

Thank you for the inquiry. There are no limitations in the temporary license because a temporary license is a time-restricted full license that lets you test every aspect of a product before buying it.

So, for how many days this temporary license will be valid for ?

Hi Imran,

Thank you for the inquiry. The temporary license will be valid for 30 days.

Thanks & Regards,
Imran Rafique