asciidocfx / AsciidocFX

Asciidoc Editor and Toolchain written with JavaFX 21 (Build PDF, Epub, Mobi and HTML books, documents and slides)
http://www.asciidocfx.com/
Apache License 2.0
1.89k stars 297 forks source link

Cannot generate PDF #465

Closed RosanaKonciute closed 4 years ago

RosanaKonciute commented 4 years ago

I created a document on AsciidocFX. It has few levels (section-subsection-subsubsection) and it is located in few levels on folder system. I click PDF -> Save and I see in the log That PDF conversion ended. But it also says that generated 0 pages in total. it really creates pdf file, but when I open it I get the message "There was an error opening this ducument. The is demage and could not be repaired".

Why I can not generate pdf?

rahmanusta commented 4 years ago

I can tell why if you share the document.

RosanaKonciute commented 4 years ago

Please find attached main document ("wholeDocument") and folder structure

Issue.zip

rahmanusta commented 4 years ago

I recommend you creating your file structure, step by step, and see result on every step by generating pdf. At first look, I see two issue:

RosanaKonciute commented 4 years ago

Fixed structure and deleted :docinfo1:. Now it generates pdf but with two included documents only. Doesn't work if there more than two documents included.

For example, thi one works:

:leveloffset: 1 include::modules/1section.adoc[] include::modules/2section.adoc[] :leveloffset: -1

But this one do not work:

:leveloffset: 1 include::modules/1section.adoc[] include::modules/2section.adoc[] include::modules/3section.adoc[] :leveloffset: -1

Have any ideas why?

rahmanusta commented 4 years ago

Try spaces like below

:leveloffset: 1

include::modules/1section.adoc[]

include::modules/2section.adoc[]

include::modules/3section.adoc[]

:leveloffset: -1
rahmanusta commented 4 years ago

I close that issue, you can reopen it if the issue is still exist.