ByteArray input and output for Convert and save functions

Product: PDFNet

Product Version: 9.4.2

Please give a brief summary of your issue:
I am looking to load the template using byte array or input stream, and output the PDF in byte array

Please provide a link to a minimal sample where the issue is reproducible:
Here what I have currently but it is reading template files from a path and output to a file
TemplateDocument template_doc = Convert.createOfficeTemplate(input_path + input_filename, null);

        PDFDoc pdfdoc = template_doc.fillTemplateJson(jsonString);

        // save the result
        pdfdoc.save(output_path + output_filename, SDFDoc.SaveMode.INCREMENTAL, null);

Hi Tom,

The CreateOfficeTemplate method can take a filter as an input. You can use the filter class to pass in a byte array. For more information please view the documentation:
https://www.pdftron.com/api/PDFTronSDK/dotnet/pdftron.PDF.Convert.html#pdftron_PDF_Convert_CreateOfficeTemplate_pdftron_Filters_Filter_pdftron_PDF_ConversionOptions_
https://www.pdftron.com/api/PDFTronSDK/dotnet/pdftron.Filters.Filter.html

Please let me know how this works for you, and if you have any further questions.