All, Looking for newbie help. I searhed the internet looking for examples to follow. What I want to do is write code to read a multipage pdf and convert to jpg (each page) and display on screen. I find way too much stuff that is either complicated or it is already a package. All I want is to be able to follow simple examples. Thanks.
com.aspose.pdf.Document pdfDocument = new com.aspose.pdf.Document("input.pdf");
// loop through all the pages of PDF file
for (int pageCount = 1; pageCount <= pdfDocument.getPages().size(); pageCount++)
// create stream object to save the output image
java.io.OutputStream imageStream = new java.io.FileOutputStream("Converted_Image" + pageCount + ".jpg");
//create Resolution object
com.aspose.pdf.Resolution resolution = new com.aspose.pdf.Resolution(300);
//create JpegDevice object where second argument indicates the quality of resultant image
com.aspose.pdf.JpegDevice jpegDevice = new com.aspose.pdf.JpegDevice(resolution, 100);
//convert a particular page and save the image to stream
//close the stream
Daemon - thanks for the first reply. I think I did find something like your example. My difficulty was the "com.aspose.pdf.Document" and not knowing how to import it. This is something with which I am not familiar. I'm trying to follow examples from my book and they don't show anything like this. As for Stultuske, thanks for the sarcasm. I took a programming class at the community college. What I am trying now is to finish the last few chapters on my own. During the course, I was able to cut and paste some snippets and modify them to fit the homework. I learned by example. Can you please take your comment and shove them in the same place as your 5-1/2" floppy and Apple 2e? Insulting people who are trying to learn doesn't get you points. Feel good ? You're a "posting expert" with comments like that ? Featured as well ? Says a lot about what Daniweb has to offer.
There are open source pdf libraries available - just Google. My guess is that you won't find a solution that is really simple code, so you'll probably have get into some code that's a bit beyond beginner level.
As Jwenting said there are free options such as iText, Apache PDFBox and others just search for them
Both of above mentioned libraries have very good documentation with plenty of examples and active communities to help out with issues one may face
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...
Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...