If you use DocBook and its stylesheets, you can add a mediaobject to the 
title page and then add that image into the book-docinfo.xml for your book. 
Export to docbook, transform to fo from docbook, export to PDF from fo.

Adding a mediaobject is a little painful but once done it is pretty easy.

1) in docbook stylesheets (1.77.1 for example), copy the 
fo/titlepage.templates.xml file and add <mediaobject/> .  Add this right 
after the end of the title element for books, just before the subtitle 
element.  
2) use xsltproc to transform this new titlepage.templates.xml file into the 
xsl file that makes the titlepages.  For example xsltproc -o 
myTitlePage.xsl docbook-xsl-1.77.1\template\titlepage.xsl 
new_titlepage.templates.xml
3) import this new stylesheet for titlepages in your customization file.  
For example, adding <xsl:import href="myTitlePage.xsl" />.
4) transform the DocBook file to fo. For example xsltproc.exe 
myPDFstyles.xsl booksimple.xml > book.fo
5) transform the fo file to PDF. For example, using Apache FOP, run the 
command fop.bat .\book.fo .\book.pdf 

All of those commands can be put into a Windows batch file.

That being said, I could not get this to work with the 1.77.1 public 
release files.  I think that is a bug since if I get the latest transform 
files from http://50.56.245.89/xsl/template/ then it works fine (and it 
worked in earlier versions too).  So, if you want, I could send you the 
final myTitlePage.xsl.  Once you have this in scripts it all moves rather 
fast.  I have all of this scripted into the Sublime Text 2 text editor so I 
just need to select build.  The custom title page tranform to an XSL file 
is only done once, until you update to a new set of stylesheets.

//Shawn

On Sunday, October 7, 2012 9:14:51 PM UTC+2, David Rogers wrote:
>
> Thank you for your response,  I am using a2x to create my pdf and I have a 
> makefile with the following a2x line that creates my pdf file:
> a2x --no-xmllint -f pdf -d book --dblatex-opts "-P 
> latext.output.revhistory=0"
>
> As you suggest I went to the FAQ and saw there is a lot to look through. 
> To bad it's not as simple as the rest of asciidoc just putting an image on 
> the front cover page of a pdf document but you got to draw the line some 
> where on simplicity. I'll look into it on a rainy day, I need to continue 
> writing the rest of the document.
>
> Thank you again
> Dave
>
> On Friday, October 5, 2012 8:45:05 PM UTC-4, Lex Trotman wrote:
>>
>>
>>
>> On 6 October 2012 03:38, David Rogers <[email protected]> wrote:
>>
>>> I am new to asciidoc and I am able to generate html and pdf documents 
>>> with images.  Put how do I put a company_logo.png image on my cover sheet?
>>>
>>
>> Html generated by asciidoc  is all one page, so the concept of 
>> "coversheet" doesn't really exist, so you can only put the logo after the 
>> header.
>>
>> Coversheets for chunked HTML and PDF generated from docbook depends on 
>> the particular tool chain and I admit can be quite complex, and is beyond 
>> the scope of this list, see Faq #3 for references to particular toolchain 
>> documentation.  More help would be available on the list for the particular 
>> toolchain.
>>
>> Cheers
>> Lex
>>
>>
>>> Please explain it to a newbie
>>> Thank you much
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "asciidoc" group.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msg/asciidoc/-/SwU91Z2I8AMJ.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to 
>>> [email protected].
>>> For more options, visit this group at 
>>> http://groups.google.com/group/asciidoc?hl=en.
>>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/asciidoc/-/YpJHFh4gogwJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to