Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9212961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:38:30+00:00 2026-06-18T01:38:30+00:00

I am having some trouble with an AsciiDoc document. It uses an image, but

  • 0

I am having some trouble with an AsciiDoc document. It uses an image, but the image is only shown in the HTML version, but not in the PDF version.

I have this short document:

Test book
=========
Robert Larsen
:doctype: book

Test chapter
------------
image:test_image.jpg[Test image]

This looks fine in HTML. But when I convert first to Docbook and then to PDF (using db2pdf), then only the alternative text is shown.

The Docbook version is:

<book lang="en">
<bookinfo>
    <title>Test book</title>
    <author>
        <firstname>Robert</firstname>
        <surname>Larsen</surname>
    </author>
    <authorinitials>RL</authorinitials>
</bookinfo>
<chapter id="_test_chapter">
<title>Test chapter</title>
<simpara><inlinemediaobject>
  <imageobject>
  <imagedata fileref="test_image.jpg"/>
  </imageobject>
  <textobject><phrase>Test image</phrase></textobject>
</inlinemediaobject></simpara>
</chapter>
</book>

I have tried other image formats as well, so that is not it.
I use Ubuntu 12.10

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T01:38:32+00:00Added an answer on June 18, 2026 at 1:38 am

    I can’t explain why the image is missing (perphaps there is something wrong with the processing of inlinemediaobject). In any case, db2pdf is part of an old toolchain (based on DSSSL stylesheets) that is hardly maintained anymore.

    It will work if you use the more modern DocBook-XSL stylesheets together with FOP. See this Ubuntu documentation: https://help.ubuntu.com/community/DocBook#DocBook_to_PDF.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Having some trouble refreshing the image, i have a script running in the background
I´m having some trouble with my WCF Client. I have configured the endpointBehaviors but
Having some trouble with R's garbage collection, when passing objects to C++. We have
Im having some trouble writing a getstring function, this is what I have so
having some trouble with my z-indexing. in short I have an absolute div underneath
Having some trouble looping through these arrays , i have 4 properties that identical
Having some trouble sending properly formatted HTML e-mail from a PHP script. I am
Having some trouble understanding the right approach here. I have a connection to a
Having some trouble passing values from one class to another. I basically have a
Im having some trouble getting on with my first codeigniter project, and i have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.