Login  Register

Re: Can I build this https://github.com/elastic/elasticsearch-definitive-guide into pdf?

Posted by dzmitry.lahoda on Oct 14, 2015; 12:20pm
URL: https://discuss.asciidoctor.org/Can-I-build-this-https-github-com-elastic-elasticsearch-definitive-guide-into-pdf-tp3845p3852.html

Thanks.

I seems made things as I want (I got pdf with toc)

 asciidoctor -r asciidoctor-pdf -d book -b pdf -a toc D:/elasticsearch-definitive-guide/book.asciidoc  

But I saw dozens of errors in attached book.txt. Are these errors mean loss of text?
I generate HTML without errors and print if into PDF via Chromium, but then TOC does not have page numbers:(.
In case of asciidoctor  to pdf directly if see errors and afraid of some loss of data:(
Not sure what is better.



What I did - I found that book has Atlas artifacts in it. I found that book published by OReally. Atlas needs reg code to get it. I have no. So I tried you tool and got pdf with toc.

Actually book contains these bad artifacts:

Lucene, the Java libraries on which Elasticsearch is based, introduced the concept of <em>per-
segment search</em>. A <em>segment</em> is an inverted index in its own right, but now the word
<em>index</em> in Lucene came to mean a <em>collection of segments</em> plus a <em>commit
point</em>—a file that lists all known segments, as depicted in A Lucene index with a commit point and three segments. New documents are first
added to an in-memory indexing buffer, as shown in A Lucene index
with new documents in the in-memory buffer, ready to commit
, before being written to an on-disk
segment, as in After a commit, a new segment is added to the commit
point and the buffer is cleared



I suggest next things:
1. I do not find Donate button. Could you add somewhere this?
2. http://asciidoctor.org/ slightly frightens me as Widows user.  From start I see Ruby, JVM and Linux. As and user I expect too see just installation guide right at top of page. Left details if I have problems with installation or for who, is interested into bottom.
3. Fix HTML parsing errors during PDF generation (`Failed to parse formatted text`). At least for book i generated which as I undrestand work well with Atlas.