dcsimg
www.webdeveloper.com
Results 1 to 7 of 7

Thread: working with pdf question

  1. #1
    Join Date
    Jan 2005
    Posts
    592

    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?

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,634
    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

    eBookworm.us

  3. #3
    Join Date
    May 2003
    Posts
    599
    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?

  4. #4
    Join Date
    May 2003
    Posts
    599
    Hold the phone, i was just looking for more libs and came across this...looks like it should do what you want.FPDI

  5. #5
    Join Date
    Feb 2011
    Location
    Baltimore, MD
    Posts
    12

    Smile Pdf2ps2pdf

    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

    Cheers,

    - Brian

  6. #6
    Join Date
    Jun 2013
    Posts
    37
    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)
    End Sub

  7. #7
    Join Date
    May 2014
    Posts
    3
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles