//Creating stream objects holding the PDF files in Open Mode FileStream inStream1 = new FileStream(inFile1, FileMode.Open); FileStream inStream2 = new FileStream(inFile2, FileMode.Open);
//Creating output stream object that will store the extracted pages as a PDF file FileStream outputStream = new FileStream(outFile, FileMode.Create);
//Instantiating PdfFileEditor object PDF.PdfFileEditor editor = new PDF.PdfFileEditor();
I have reproduced the problem at my end and logged it as PDFKITNET-13148 in our issue tracking system. Our team will look into the issue and you’ll be updated via this forum thread once the issue is resolved.
The changing of a field value does NOT work for version 3.9 or 4.0
The insertion of another PDF does NOT work for version 3.9 or 4.0
The changing of a field value AND the insertion of a PDF DOES work for version 3.0
The 30 day trial license I obtained for 3.9/4.0 does not work for 3.0
Until these bugs are fixed for the newer versions, is it possible to get a trial license that will work with 3.0?
The following code was used in the test:
// The license is not valid for this product.
Aspose.Pdf.Kit.License license = new Aspose.Pdf.Kit.License();
//license.SetLicense("Aspose.Pdf.Kit.lic");
// Creating stream objects holding the PDF files in Open Mode
FileStream inStream1 = new FileStream("Test1.pdf", FileMode.Open);
FileStream inStream2 = new FileStream("Test2.pdf", FileMode.Open);
//Creating output stream object that will store the extracted pages as a PDF file
FileStream outputStream = new FileStream("Test3.pdf", FileMode.Create);
//Instantiating PdfFileEditor object
PDF.PdfFileEditor editor = new PDF.PdfFileEditor();
//editor.Insert(inStream1, location, inStream2, pages, outputStream);
editor.Append(inStream1, inStream2, 1, 2, outputStream);
//Closing output stream
inStream1.Close();
inStream2.Close();
outputStream.Close();
// Change the value of field value for the inserted page
PDF.Form form = null;
form = new PDF.Form("Test3.pdf", "test_final.pdf");
form.FillField("TextField2", "HELLO");
form.Save();
As far as first issue is concerned, our team is currently working on this and we’ll update you once it is resolved.
I have logged the second issue with FillField method as PDFKITNET-13277 in our issue tracking system. Our team will be looking into this issue and you’ll be updated with the resolution the earliest possible.
Also, I’m sorry to inform you that we can’t provide you the license for the older versions. However, we’ll try to resolve these issues as soon as possible, so you would be able to use our latest version.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.