These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

How to control the size of an attachement?

lennyb
Registered: Apr 8 2008
Posts: 4
Answered

Hi, I have the next code to import an attachement in my document. But I need to control the maximum size of this attachement.

var myDoc = event.target;
myDoc.importDataObject("name_of_attachement");

How can I control it?

My Product Information:
LiveCycle Designer, Windows
lennyb
Registered: Apr 8 2008
Posts: 4
I found the solution in this post http://adobe.groupbrowser.com/t25437.php

myDoc.importDataObject("name_attachement");
var objData = myDoc.getDataObject("name_attachement");
var oFile = myDoc.getDataObjectContents("name_attachement");
app.alert(objData.size);


Thanks