Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!

Madhu Sudhan B T

Greenhorn
+ Follow
since Nov 18, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Madhu Sudhan B T

Thanks for the reply.. I am attaching the file that I am trying to convert. When I open the converted PDF file, the zoom % is always 141% and I need that to be 100 % and some of the text is cut in the converted PDF image.

I am using the attached file just for testing but I am looking for generic code to convert all tiff files to PDF.

Please let me know if you need more info.. Thanks for your help..
Hi All,

I have a requirement for converting TIFF to PDF. The code that I am using converts tiff to PDF but however the PDF image is not similar to the tiff image as some of the area is cut in the PDF image and the size is bigger than TIFF. below is the code that I am using.. Please can anyone suggest the better way for converting tiff to PDF.. Thanks in advance

Thanks Ulf Dittmer for the response.. can you please share some relevant sample java code/examples showing the usage of JODConverter api's? Thanks in advance
6 years ago
Hi All,

I have a requirement to convert any input files (txt,doc,docx,jpg,html,xls etc) to PDF.

I am using the below code to convert the input file to PDF , it is working for txt file but not doc, xls etc as I am getting some special characters in the output file. Can anyone help me with code to accomplish the same.. Your help will be appreciated.. Thanks

private void createPdf(String inputFile, String outputFile, boolean isPictureFile)
{
Document pdfDocument = new Document();
String pdfFilePath = outputFile;
try
{
FileOutputStream fileOutputStream = new FileOutputStream(pdfFilePath);
PdfWriter writer = null;
writer = PdfWriter.getInstance(pdfDocument, fileOutputStream);
writer.open();
pdfDocument.open();
/**
34.
* Proceed if the file given is a picture file
35.
*/
if (isPictureFile)
{
pdfDocument.add(com.lowagie.text.Image.getInstance(inputFile));
}
/**
* Proceed if the file given is (.txt,.html,.doc etc)
*/
else
{
File file = new File(inputFile);
String temp=null;
pdfDocument.add(new Paragraph(org.apache.commons.io.FileUtils.readFileToString(file,temp)));
}
pdfDocument.close();
writer.close();
}
catch (Exception exception)
{
System.out.println("Document Exception!" + exception);
}
}
6 years ago
Once the documents are downloaded how to stop/terminate the applet. After downloading if user goes to the webpage, the applet again begins to download the documents. I want to stop/terminate the applet after its first execution no matter even if user keeps the browser as is?. Please help.........
6 years ago
Hi There,

I need to make multiple calls to a servlet from single instance of Applet.. i.e., flow is like this

1) Applet calls servlet requesting for some info (filenames)
2) Servlet sends the requested info (filenames)
3) Applet iterates based on the info (number of filenames) provided and calls servlet to send contents of each filename to applet. In a loop applet downloads file one by one making multiple calls to servlet requesting for content..

can we do this?, please advise....

6 years ago
Thanks.. I am able to pass the content from servlet to applet. Along with content I need to pass the filenames as well so that I can write the content to a file with the same filename in applet.

Please advise how i can accomplish this.. Thanks for your help...
6 years ago
Hi EVeryone,

I am new to lotus notes, can anyone please suggest the way of adding attachments to lotus notes email from java script.

Thanks for your help
Madhu
Thanks Paul. Do I need to make the applet as signed If i have to download the files from server to local machine. I tried from local RAD websphere by calling the servlet via applet and I was able to transfer the contents locally from one folder to another folder.Below is the flow

JSP page intiaites applet which calls servlet and servlet will get contents from local folder (for eg:A) and passes it thru outputstream to applet and applet will read the contents and file it to an other folder in the same machine (for eg: B). This was achieved after making applet as selfsigned using keytool and jarsigner commands.

However after deploying the project on the destination server, I am unable to achieve the same but I have confirmed that applet to servlet and viceversa communication is happening. Do I need to sign the applet again to download files locally?

Thanks...
6 years ago
On an average we will be having 5 documents for each request. After downloading these documents, my code need to open the Lotus notes and attach the downloaded files so that user can send email to intended recpient. In my case users are very lazy to click the save button (Hence this post) to save the zip file to local machine and I am sure they will not agree on having the link for each document because they will have to click so many times to download the documents to local machine. I will be very gald of you guys if I get an feasible approach using applet to achieve this. Many thanks in advance.....
6 years ago
Thanks Bear Bibeault for the reply. This is what I was doing initially. When user clicks on the link, my code was downloading all the documents zipped together to user machine by prompting a save dialogue to the user to save the zip file. But unfortunately users don't want to have the save prompt message and they want individual documents to be downloaded. Because of this I am using the applet approach. Kindly help with your ideas. Many thanks.....
6 years ago
Regarding my query on making applet as signed, I meant do I need to make applet as signed if I have to download the files to local machine after receiving the object stream from servlet. Please help..?
6 years ago
Thanks Ulf Dittmer.. My requirement is to send files individually but not as a zip file, please suggest?. Do i need to make my applet as signed if I have to access the object stream from servlet.

Also please help on the below.

I need to pass a dynamic value from JSP page to applet and retrive it in applet.

Can you suggest/help me how I can accomplish this tasks.

Thanks in advance,
Madhu
6 years ago
Hello everyone,

I am new to applet and I need to pass a value from JSP page to applet and retrive it is applet.

Can anyone suggest/help me how I can accomplish this tasks.

Thanks in advance,
Madhu
6 years ago