pdf Collections, how to set field values so that importDataObject() displays them correctly
So I have an email in outlook, using PDFMaker I've appended the email to an existing pdf portfolio. The fields displayed in this portfolio are From, Subject, Date, Attachments, Size. The append to Adobe pdf function populates these fields in the portfolio correctly for the imported pdf converted email. What I need is to be able to do that programmatically through VBA or JS.
I'm using VBA to convert hundreds of emails to pdf and then append them to the associated pdf portfolios. I'm using the JS object to run importDataObject on the portfolios to bring in the email pdf. This requires privilege and I'm 95% certain I've figured that part out using the JS console in Acrobat. What I can't figure out is setting the field values for the portfolio.
I can take the appended pdf from the PDFMaker function and extract it, 100% intact, and re-add it to the same portfolio and all of the field data is wiped. All I see in the From field is the name of the pdf. So it can't just be a matter of setting the metadata like I initially expected. I've searched and searched through SDK info, and maybe I'm just looking in the wrong place, but I can't for the life of me find this. Help Please.
