on 11-11-2008 4:50 AM
Hi All,
I am using FileDownload UI element in the ADOBE interactive to download the content to a PDF file.
Please help me how to download content to a PDF file.
Thanks,
Archana.
hi Archana,
you will get the byte format of the pdf form the pdf source attribute , create a resource using that byte data of type pdf as following
IWDResource iwdResource = WDResourceFactory.createResource(wdcontext.currentContextElement().getPdfSource(), "resource name", WDWebResourceType.PDF);
create a context element say fileresource of type iwdresource.
set it's value as following.
wdContext.currentContextElement().setFileResource(iwdResource);
and do the following code on the action of the download button.
public void downloadFile( )
{
//@@begin createExternalPopup()
// get the resource from the context
IWDResource resource = wdContext.currentContextElement().getFileResource();
//create an external window. A download dialog should appear
IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(resource.getUrl(WDFileDownloadBehaviour.AUTO.ordinal()) ,"Title");
//@@end
}
with regards
shanto aloor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Archana,
Try searching and it will help you. Anyways you can check below thread for some information on it.
Chintan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.