Convert DOCBOOK to JPG
Turn DOCBOOK files into JPEG files. Typeset in Libertinus Serif with code in DejaVu Sans Mono on A4 pages unless page_size says letter, with the title block and abstract, sections, lists, tables, program listings, admonitions and footnotes, and entities declared in the file expanded.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop DOCBOOK files on the dialor turn it to pick what to do
DocBook pages as JPG images.Each page of the typeset book becomes its own picture.
What you get
A JPG for every page of the DocBook file. The pages are typeset in Libertinus Serif, with code in DejaVu Sans Mono, on A4 paper unless you choose Letter.
The pages show the title block and abstract, sections, lists, tables, program listings, admonitions and footnotes. Entities declared in the file are expanded before the pages are drawn.
What changes
Images become their description, so a picture in the source shows as text, not as a picture. A first name and surname written without a space between their tags run together.
JPG is lossy, so the pages are compressed and some detail is lost. The default is quality 90 at 150 dpi.
Options
Set Resolution (dpi) between 36 and 600. Higher is sharper and makes a bigger file. Around 150 reads well on screen, and 300 is the usual choice for print.
Set Page size to A4, Letter or auto. With auto, each page takes the size of its own content.
Set Pages to convert only some pages, using a range such as 1-3,7. Set Quality between 1 and 100. Above 90 the file grows quickly while the picture barely changes. Set Width (px) to give the exact width of the result. The height follows the aspect ratio unless you also give it, and then the picture can be stretched.
To change a page after the conversion, use resize JPG.
DOCBOOK and JPG.What each format is, and the options this conversion takes.
- 01 · dpi
Resolution (dpi)
How many pixels each inch of the page becomes when it is drawn as a picture. Higher is sharper and makes a bigger file. Around 150 reads well on screen, and 300 is the usual choice for print.
36 to 600 default 150 - 02 · page_size
Page size
The size of the pages written. A4 is the standard in most of the world and Letter in North America.
a4210 × 297 mm.letter8.5 × 11 in.autoEach page takes the size of its own content.
- 03 · pages
Pages
Converts only some pages. Write single pages and ranges separated by commas, such as 1-3,7. Every page is read when it is left out.
- 04 · quality
Quality
How much detail lossy compression keeps. Higher keeps more detail and makes a bigger file. Above 90 the file grows quickly while the picture barely changes.
1 to 100 default 90 - 05 · width
Width (px)
The exact width of the result in pixels. The height follows the aspect ratio unless it is also given, in which case the picture can be stretched.
1 to 20000
The formats
DocBook
DocBook XML, the structured format of technical books and manuals.
- Extensions
- .dbk .docbook
- MIME type
- application
/docbook +xml - Kind
- Text and data
JPEG
Lossy photo compression that every device and browser opens. Small files, no transparency.
- Extensions
- .jpg .jpeg .jfif .jpe
- MIME type
- image
/jpeg - Kind
- Images
In your code.The same DOCBOOK to JPG conversion through the API, for your app or your agent.
$ cv convert report.dbk report/ --to jpeg$ cv convert report.dbk report/ --to jpegQuestions.What people ask about DOCBOOK to JPG.
Yes. Each page becomes one JPG, so a long document gives you many files. Set Pages to convert only some of them.
No. Images become their description, so the page shows that text where the picture was.
Yes. Set Page size to Letter. A4 is used when you leave it unset.
No. JPG is lossy, so some detail is lost. A higher Quality keeps more detail and makes a bigger file.