Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prompted ant--image does not link for single topic to PDF #25

Closed
jelovirt opened this issue Apr 24, 2012 · 3 comments
Closed

Prompted ant--image does not link for single topic to PDF #25

jelovirt opened this issue Apr 24, 2012 · 3 comments
Labels
Milestone

Comments

@jelovirt
Copy link
Member

Converted from SourceForge issue 1220644, submitted by nodyad

Reported by Dan Beigel and verified by Don Day as follows:

Use prompted ant to build a single file in the samples
directory that has an image:

C:\DITA-OT1.0.2>ant
Buildfile: build.xml

dita.init:

prompt.init:

prompt:
[echo] Please enter the filename for the DITA map
that you
[echo] want to build including the directory
path (if any).
[echo] The filename must have the .ditamap
extension.
[echo] Note that relative paths that climb
(..) are not supported yet.
[echo] To build the sample, press return
without entering anything.
[input] The DITA map filename:
samples/tasks/washingthecar.xml
[echo]
[echo] Please enter the name of the output
directory or press return
[echo] to accept the default.
[input] The output directory (out):

 [echo]
 [echo]     Please enter the type of output to

generate.
[echo] Options include: eclipse, htmlhelp,
javahelp, pdf, or web
[echo] Use lowercase letters.
[echo]
[input] The output type:
(eclipse,htmlhelp,javahelp,pdf,web,docbook)
pdf
[echo]
[echo] Ready to build
samples/tasks/washingthecar.xml
[echo] for pdf in out
[echo]
[input] Continue? (Y,y,N,n)
y

The job will run to completion, but this error will be
issued:

  [fop] [ERROR] Error while creating area : Error

while recovering Image Inf
ormations (file:/C:/image/carwash.jpg) :
C:\image\carwash.jpg (The system cannot
find the path specified)

The image will not be in the resulting PDF.

If you build the entire map using "ant samples.pdf",
the image will be resolved normally. The single-file
issue affects being able to use single topics as drafts

to verify content.

Don Day

@jelovirt
Copy link
Member Author

Submitted by wuzhiq

Logged In: YES
user_id=1231479

You can solve this problem by following this:

  1. In ant command, run the task with property 'dita.input'
    set to 'washingthecar.xml' and 'dita.input.dirname' set to
    'samples/tasks'
  2. In java command, run the task with param '/if' set to
    'washingthecar.xml' and '/id' set to 'samples/tasks'.

@jelovirt
Copy link
Member Author

Submitted by wuzhiq

Logged In: YES
user_id=1231479

This is truly a defect, we will fix it in the next release.

@jelovirt
Copy link
Member Author

Submitted by leelix

Logged In: YES
user_id=474312

fxied in 1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant