Hi
ramit,
If you want to use a jsp page to select a
file, you should use the following form:
<form action="…" enctype="multipart/form-data"
method="post">
<p>
Please
specify a file, or a set of files:<br>
<input
type="file" name="datafile" size="40">
</p>
<div>
<input
type="submit" value="Send">
</div>
</form>
On the server side, you can get the pdf
file’s InputStream from the method HttpServletRequest.getInputStream(), then
you pass this InputStream to the method PdfConverter.bindPdf(java.io.InputStream inputStream),
finally you call the method PdfConverter.getNextImage(HttpServletResponse.getOutputStream(),
ImageType imageType) to send the result
image to the client.
I have not tested these codes on my
machine, but I’m quite sure it will work. You can contact to me if you have any
problem.
Thank you for using our product.
Sandy.Zhang
Product Developer
Aspose Changsha Team
About UsContact Us