Hi ,
I have a PDF document having some form fields on it , also some fields containing data on it.
I want to edit this and need to save with updated records as new PDF.
Please let me know ,if any workaround for this. Attaching the sample file
I am using Xamarin - Android SDK for doing the same.
Also
using the below code for loading it, which working fine until form
fields contains no records , if it's containing some data getting error
"header checksum illegal".
var inputStream = new MemoryStream();
string directory = System.IO.Path.Combine(Android.OS.Environment.ExternalStorageDirectory.AbsolutePath);
string SZ_IMPORT_PATH = System.IO.Path.Combine(directory, "SAMPLE1.pdf");
using (FileStream file = new FileStream(SZ_IMPORT_PATH, FileMode.Open, FileAccess.Read))
{
byte[] bytes = new byte[file.Length];
file.Read(bytes, 0, (int)file.Length);
inputStream.Write(bytes, 0, (int)file.Length);
}
PdfLoadedDocument lDoc = new PdfLoadedDocument(inputStream, true);
Syncfusion.Pdf.PdfDocument document = new Syncfusion.Pdf.PdfDocument();
document.ImportPageRange(lDoc, 0, lDoc.Pages.Count - 1);
var inputStreamSaved = new MemoryStream();
document.Save(inputStreamSaved);
pdfViewer = FindViewById<SfPdfViewer>(Resource.Id.pdfviewercontrol);
pdfViewer.LoadDocument(inputStreamSaved);
Any help will be appreciated.
Thanks,
Attachment:
FormFillingDocument_e566f737.zip