working with pdf question
right so I have this script that converts pdf files to jpg. Some pdf don't work and I found out that if I simply merge and split them again online that they will work afterwards. So what I am looking for is a way that lets me create a pdf document, import an exisiting pdf and then save it as a new pdf.
does anyone have any code for this?
Not I: I avoid PDF's like the plague (great for printing, lousy for information exchange across the web).
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Im working with a couple of pdf classes now...what a pain. They dont support importing of pdf. But I believe the Scribus project offers monster PDF support, and pretty open scripting capabilities...maybe there is something there that will help with some clever shell scripting?
Hold the phone, i was just looking for more libs and came across this...looks like it should do what you want.FPDI
If that doesn't work, you might also want to try converting from PDF to Postscript and back to PDF (or just make your JPG from the PS file directly.
If you don't have the packages installed already, use (for RedHat/CentOS):
$ yum install xpdf-utils
$ yum install ghostscript
Then run this
$ pdftops source.pdf convert.ps
$ ps2pdf convert.ps newfile.pdf
Yes, here is the sample methods for creating pdf document within vb.net application. But I haven't met such problem, that only having merged and splitted the pdf document, can we convert pdf to jpeg image.
Private Sub New(pageNum As Integer)
Write the document. Use Microsoft Word to write whatever document you'd eventually convert to a PDF. If you've already completed the document you'd like to convert, just open the document.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)