var thedoc = doc.importDataObject(mynewname,"/C/TEMP/print/OUTFILE.pdf");
Still, same issue.
After importing, I have a code to opendataobject and it's throwing error (JavaScript console print).
************************************************
JavaScript console print:
status of the import is :true
Dumping all data objects in the document.
DataObject[0]=testing123
After myReadDoc:goodstat:good
Before openDataObject
RaiseError: File does not begin with '%PDF-'.
Doc.openDataObject:1342:XFA:topmostSubform[0]:#pageSet[0]:PageArea1[0]:Submit[0]:click
===> File does not begin with '%PDF-'.