on 01-03-2007 11:55 AM
Hello,
i have created a WD with a iFrame UI. My purpose is to show only the first site of my pdf-document without the functions for scrolling, saving etc.. Is there any way to do this? Until now i used the code below to display the pdf.
regards,
Sharam
String pdfUrl = null;
try
{
pdfUrl =
WDWebResource
.getWebResource(wdComponentAPI.getDeployableObjectPart(), WDWebResourceType.PDF, "p1.pdf")
.getURL();
}
catch (Exception e)
{
IWDMessageManager manager = wdComponentAPI.getMessageManager();
manager.reportException("could not get WebResourceURL" + e.getMessage(), false);
}
wdContext.currentContextElement().setPdfUrl(pdfUrl);
Hi Sharam Pourmir,
Try to put the pdf file under your <project name>/src/mimes/Components/<component name>
In the IFrame just write the file's name in the 'src' property (name & extension are case sensitive).
It should work.
Omri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.