displaying images in in PDF's with fop

Discussion in 'XML' started by api, Jan 6, 2005.

  1. api

    api Guest

    I'm using XSL stylesheets and XML documents to generate PDF files with
    xsltproc, then fop. The problem is, I can't get images to show up in
    the PDF (the text showing up in the fo file, though). I've tried the
    following:



    <fo:external-graphic src="url(/path/to/image.jpg)" />

    <img src="http://path/to/image.jpg" content-height=".2in"
    content-width=".5in" overflow="visible"/>

    <fo:external-graphic src="file:///http://www.path.to.image.jpg"
    content-height="70%" content-width="70%" overflow="visible"/>

    <fo:external-graphic width="50pt" height="50pt" overflow="hidden"
    src="image.jpg"/>



    I also tried a number of other variations of <img src>,
    <fo:external-graphic>, and even <mediaobject>. I tried absolute and
    relative paths. I've seen a lot of posts from people about getting
    images to display in their PDFs, but the solution was generally one of
    the ones I listed above. Am I missing something?



    Thanks.
     
    api, Jan 6, 2005
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. [Miren]
    Replies:
    3
    Views:
    5,957
    Brusque
    Oct 10, 2004
  2. gerlar2000
    Replies:
    0
    Views:
    769
    gerlar2000
    Feb 21, 2005
  3. Tim
    Replies:
    6
    Views:
    12,220
  4. Edward
    Replies:
    2
    Views:
    12,648
    DerekLittle
    May 18, 2007
  5. Pablo
    Replies:
    0
    Views:
    1,303
    Pablo
    Mar 28, 2007
  6. Jen
    Replies:
    0
    Views:
    196
  7. Ricardo Pog
    Replies:
    1
    Views:
    800
    Austin Ziegler
    Mar 26, 2008
  8. Sean Nakasone
    Replies:
    1
    Views:
    676
    Farrel Lifson
    Apr 14, 2008
Loading...