Find the answer to your Linux question:
Results 1 to 3 of 3
Hi all, I need to scale a pdf figure, i.e. I need the pdf to report itself to be a different size than it does right now. The figure in ...
  1. #1
    Linux Newbie
    Join Date
    Sep 2007
    Posts
    161

    [SOLVED] "scale" pdf or eps figures

    Hi all,

    I need to scale a pdf figure, i.e. I need the pdf to report itself to be a different
    size than it does right now. The figure in the pdf is scalable, so it doesn't really
    need to be changed, but if I check the meta information in the pdf, e.g. using
    acrobat reader or the pdfinfo tool, it says

    Code:
    Title:          R Graphics Output
    Creator:        R
    Producer:       R 2.8.1
    CreationDate:   Fri Jan 29 17:31:18 2010
    ModDate:        Fri Jan 29 17:31:18 2010
    Tagged:         no
    Pages:          1
    Encrypted:      no
    Page size:      432 x 432 pts
    File size:      12502 bytes
    Optimized:      no
    PDF version:    1.4
    I need that "Page size" info to be something different.

    I know there's a command line tool to do it, I have done it before, but I have
    just spend two hours trying to recall and I can't seem to.

    Anybody here who can help me out?
    kai


    OK, I'm back, this solution works perfectly for me:
    a comment in this blog suggests to use Multivalent

    Example:
    Code:
    java -cp Multivalent.jar tool.pdf.Impose -dim 1x1 -paper "8.5x11in" myFile.pdf
    Last edited by kai12; 02-02-2010 at 03:54 PM.

  2. #2
    Just Joined!
    Join Date
    Aug 2004
    Posts
    4

    Thumbs up

    you could have also used image-magick convert which has a many functionalities for various purposes.

  3. #3
    Linux Newbie
    Join Date
    Sep 2007
    Posts
    161
    Hi lbharti, thanks for the hint!

    I did try image magick - wonderful set of tools! - and it does convert and resize pdf to pdf, but whatever I tried, image magick would turn my scalable figures into bitmaps, and keeping scalable content was my top priority.

    cheers, kai

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...