I would like my Blazor application to be able to upload PDF Forms (editable PDF documents) for storage that the application will later use by prefilling customer data into them.
The PDFViewer shows an empty PDF when I read in the bytes and display them
I then tried to copy the document using the PdfFormatProvider, on the import it fails.
Code lines:
PdfFormatProvider provider = new PdfFormatProvider();
RadFixedDocument document = new RadFixedDocument();
document = provider.Import(file.OpenReadStream());
Error: Cannot obtain value of the local variable or argument because it is not available at this instruction pointer, possibly because it has been optimized away.
Not sure why the provider does not like these PDF files, also not sure if it is an issue or meant to work.