How to import a pdf file used by JWS into JWS resource
Hi All,
How can I import a pdf file as a JWS resource. That is, which option should I use to import the pdf file into JWS resource: "jar" or "nativelib"?
The pdf file ( which is the user guide of my application) is not used by my java src files but it just needs to be in the JWS resource so that it gets auto-updated and I can have a shortcut placed in the start menu for the user to access it.
TIA & Regards,
Vivek
Edited by: Vivekankumar on Mar 4, 2009 9:55 PM
Edited by: Vivekankumar on Mar 4, 2009 9:57 PM
I've got something similar in one of my apps.
I'm using
<related-content href="jar:http://host:port/APP/readme.jar!/readme.pdf">
<title>readme</title>
<icon href="http://host:port/APP/readme.gif"/>
</related-content>
<nativelib href="http://host:port/APP/readme.jar"/>And works fine. Only problem I've found: it doesn't work if I use explicit versioning (+version+ attribute).
Bye.
PS: actually, real href is jar:readme.jar!/readme.pdf; the one I posted is the one I'm reading in JWS viewer.
Similar Messages
-
Does anyone know how i can view PDF files using Galaxy Note 2?
Does anyone know how i can view PDF files using Galaxy Note 2?
This is what i have been doing;
I click on the file i wish to view (via a portal)
this file goes to notification widget (i drag down screen)
notification/message says download complete
i click on notification/message
nows it says complete action using (here i only have 2 icon options 1= DB Text Editor 2 = HTML Viewer)
I have installed Adobe Reader.Can you confirm if the downloaded file is a pdf file, that is it ends with .pdf?
-
How to open a pdf file using OPEN DATASET
Im trying to convert a pdf into binary format. So im trying to read the contents of the pdf into a XSTRING. Using the FM 'SCMS_XSTRING_TO_BINARY' i can convert the XSTRING to binary format.
How to open a pdf file using OPEN DATASET and transfer its contents in a XSTRING variable.
What i've tried is....
DATA: f_name type string value 'C:\rep_output_pdf.pdf',
x1 type xstring,
LT_DATA TYPE STANDARD TABLE OF X255.
OPEN DATASET f_name FOR input IN BINARY MODE.
READ DATASET f_name INTO x1.
CLOSE DATASET f_name.
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
BUFFER = x1
TABLES
BINARY_TAB = LT_DATA.
Im getting a short dump .
Short text: The file is not open.
Plz help me out.Hello Rajesh,
You are trying to do use OPEN DATASET with a local file. NOT POSSIBLE
You have to have the file in the app server to use OPEN DATASET.
BR,
Suhas -
How do I download PDF files using Safari. All I get is a black screen.
How do I download PDF files using Safari. All I get is a black screen.
Back up all data.
Quit Safari. In the Finder, select Go ▹ Go to Folder... from the menu bar, or press the key combination shift-command-G. Copy the line of text below into the box that opens, and press return:
/Library/Internet Plug-ins
From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then launch Safari and test.
If you still have the issue, repeat with this line:
~/Library/Internet Plug-ins
If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again. -
How to protect my PDF file using Adobe Acrobat Pro that i can trace user's IP adress?
How to protect my PDF file using Adobe Acrobat Pro that i can trace user's IP adress?
Used to be able. Considered a security bug. Fixed.
-
How to import a flv-file (downloaded form YouTube) into iMovie?
How to import a flv-file (downloaded form YouTube) into iMovie?
It needs to be converted to which format?
Suggestions how to do that?
Thanks.
Mattie
The Netherlandshttp://perian.org (free).
QuickTime Player Pro ($30). -
How to open a PDF file using NWDS or VC
Hi Frndz...
As per my requirment i need to open a PDF file on browser which PDFs are reside on R/3 and in my case EP server is on UNIX usinig either NWDS or VC ....
Thanks in Advance
Regards
Rajesh
09903726944hi,
can you put your question much more clearly? I couldnt get you properly.
Check out the following links, they may be useful
[How to Create a pdf form Using Web Dynpro - Java;
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/805709cb-ec97-2910-04b8-f3d6303d8d3b]
[Diff - PDF view inside NWDS livecycle designer and when App. is run;
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/90e8e837-cc15-2a10-8db1-a87e2d29e9c9]
Regards,
Murthy. -
How to upload a pdf file using webdynpro abap
Hi Experts,
I need to upload pdf files using webdynpro abap.my question is where to upload this files and how to upload this files, and how to display this pdf file.
Please Provide Requried Information.
Waiting for Reply.
Thanks & Regards.
Bhushan.Hi,
There is a UI element with the type 'File Upload'.
You can use that in your view.
For further details and coding, please refer to
[http://www.****************/Tutorials/WebDynproABAP/Upload/Page1.htm]
Hope this helps you.
Regards,
Dolly -
How to open the pdf file using LabVIEW program
I want to open the pdf file using the system exe, but it is not happening . Can you help me?
Solved!
Go to Solution.In simpler version
Mark the satisfied answer as accepted solution for your question,you mistakenly marked youself
Message Edited by Baji on 04-07-2009 05:03 PM
Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better
Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
Attachments:
open pdf.JPG 25 KB -
How do I compress PDF files using Acrobat SDK?
have a web service created in a .net environment that examines existing pdf files in a staging directory prior to sending them over the wire using FTP.
Part of that process requires that I rename individual files in order to associate them with a particular batch.
I also have a requirement to reduce the size of individual files as much as possible in order to reduce the traffic going over the line.
So far I have managed about a 30% compression rate by using an open source library (iTextSharp).
I am hoping that I can get a better compression rate using the Acrobat SDK, but I need someone to show me how, hopefully with an example that I can follow.
The following code snippet is a model I wrote that accomplishes the rename and file compression...
const string filePrefix = "19512-";
string[] fileArray = Directory.GetFiles(@"c:\temp");
foreach (var pdffile in fileArray) {
string[] filePath = pdffile.Split('\\');
var newFile = filePath[0] + '\\' + filePath[1] + '\\' + filePrefix + filePath[2];
var reader = new PdfReader(pdffile);
var stamper = new PdfStamper(reader, new FileStream(newFile, FileMode.Create), PdfWriter.VERSION_1_5);
int pageNum = 1;
for (int i = 1; i <= pageNum; i++) {
reader.SetPageContent(i, reader.GetPageContent(i), PdfStream.BEST_COMPRESSION);
stamper.Writer.CompressionLevel = PdfStream.BEST_COMPRESSION;
stamper.FormFlattening = true;
stamper.SetFullCompression();
stamper.Close();
Any assistance is appreciated.You can't use Adobe Acrobat on a server.
-
How to open a pdf file using Acrobat reader in Java?
Or if you can just tell me where in the tutorial is the section that discuss running other application from Java, I'd appreciate it. My assignment(at work, not school) is to make a class that receive a pdf file, which is passed by RMI, and display it in a child window or in a JDesktopPane. Thank you.
kindoHi Kindoo,
try using Runtime.exe(fileName)
Nagaraj -
How to generate a pdf file using javascript?
I would like to generate a pdf file having images in it using javascript. I tried jsPDF but getting some exceptions like
Uncaught ReferenceError: pageWidth is not defined,
fail to load pdf document
Could anyone show me some pointers?
Thank You
RahulHere is my code
var myImg=new Image();
myImg.src=arrData['employee'][1]['Image'];
myImg.crossOrigin ="Anonymous";
var imgData = this.getBase64Image(myImg);
var doc = new jsPDF();
doc.setFontSize(40);
doc.text(35, 25, "Test Image");
doc.addImage(myImg, 'JPEG', 15, 40, 180, 160);
doc.save("sample1.pdf");
I'm receiving the following error at 'addImage' function.
Uncaught Error: getJpegSize could not find the size of the image
Could you please help in pointing out where am I going wrong.
Thank You -
How to open a PDF file using forms 9i
Hi guys!!! Could you please help me with this?
Using the webutil library, i've found the function FILE_OPEN_DIALOG which yes, it is like windows' dialog box, but it doesn't open the specific file. If i have the PDF software, and a pdf file, and i use the webutil code to open the file from forms, why doesn't it open de file?
Code used:
:block.item := WEBUTIL_FILE.FILE_OPEN_DIALOG('c:\',
'pdf|*.pdf',
'Select a file: ') ;
I have also used:
:block.item := webutil_file.file_selection_dialog(directory_name => 'c:\',
file_name => null,
file_filter => 'pdf|*.pdf',
title => 'Select a file',
dialog_type => open_file, --save_file
select_file => TRUE);
thnx!!The dialog just gives you the name of the file to open. You then have to write code to open the file. web.show_document should work.
I have deleted your last entry. Whatever you think about the situation, a civilized language (which I know Spanish to be) would be appreciated. -
How to import a war file using JB_x
Hi
I need to move a few of *.war files from other IDE to JB_x, and further
implement them (they are struts web-apps). I'm wondering how to import each
of them (each war is a small project).
I've tried extracting war, then creating new project to import the folder,
but JB_x restructured the folder and deleted the source java files (which in
/classes).
Can any help?
John woo
TorontoFor this you crate a deployment descriptor (if you have created the project as fusion web application, the descriptor is build automatically) for a war. Then you choose the project (viewController property normally) and select deploy and the name of the descriptor. This will create the war.
To generate an ear you need an ear deployment descriptor which you define on the workspace. To generate the ear right click the workspace and select deploy and the name of the descriptor.
Timo
Edited by: Timo Hahn on 27.02.2012 23:01 -
How to import SAS .xpt file using SSIS
Is it possible to read the .xpt file using ssis? What source driver I need to install?
SSIS_UserIt seems, for SSAS there is a ODBC data provider available, which you maybe could use; see
http://support.sas.com/documentation/cdl/en/odbcdref/63284/PDF/default/odbcdref.pdf
Olaf Helper
[ Blog] [ Xing] [ MVP]
Maybe you are looking for
-
To send a mail along with a csv attachment.
Hi All, my requirement is to send a mail along with a csv file attached to it. Could someone provide me their valuable comments that will guide me. I am using the function module. SO_NEW_DOCUMENT_ATT_SEND_API1.
-
BAPI or FUNTION for reverse a Cash Journal document ?
Hi, Somebody now a bapi or funtion to reverse a Cash Journal document? I need to use this in a program. Thanks, Nohemi.
-
Create white edges newly in pages [multiple]
Hi, Can I customize a new side edges with Acrobate, or you know an tool with which you can do this. Regards Kpf
-
Copy of HR org structure very slow
Hi we are trying to copy our HR org strucuture to SRM. We have a few problems. 1. We seem to need to run seperate programs first in ECC PFAL then RBDAPP01 in SRM and then RBDAPP01 in inset mode. This doesn't seem right to me as I would expect PFAL
-
Greyed out "close", "minimize", and "zoom" controls with Yosemite
After updating to Yosemite, the "close", "minimize" and "zoom" controls for windows are not in color. They are shown in black and white, only. I am using a 13-inch mid 2010 Macbook Pro with 4 GB memory. Any ideas on what I need to do to get the colo