Mit div- Makro festgelegte divs beim PDF-Export anpassen
Hallo,
Ich habe folgendes Problem:
Wir möchten ein Protokoll in Confluence nachbauen. Dieses beinhaltet, jedoch zwei Tabellen, die nebeneinander angeordnet sind.
Da wir noch Confluence 4.1 haben , gibt es noch keine Möglichkeit die Seite zu Layouten.
Mit dem {section} und {column} macro kann ich zwar das Protokoll in Confluence gut nachbauen, exportiere Ich diese Seite jedoch als PDF werden die beiden Macros nicht erkannt und die Tabellen somit wieder untereinander dargestellt.
Nun dachte Ich daran die Tabellen mit jeweils einem div-Macro zu umschließen.
Kann ich in den Pdf Vorlagen diese divs nun ansprechen und beim Export diesen divs eine bestimmte Position zuordnen?
-
Hi Larissa,
let me answer in English, so that everyone can understand and participate. (Feel free to open a support ticket, if you need an answer in German)
A little bit of background The section/colum macros are rendered in Confluence beneath each other by all Scroll Exporters, as we saw a lot of awkward results with section/colum macros when developing the plugin (esp. when the section/columns would spread over multiple pages). Btw, Page Layouts are also rendered as one column.
For the divs and the tables, can you provide an example so that I can understand better?
Thanks,
-Stefan -
Hi Stefan,
thank for your quick response. To specify my issue with the divs and tables, here some more details and screenshots:
-I used the div macro to give the elements, which I want to dispose, a class name. This is shown on the first screenshot.
- Then I created a new Scroll Wiki PDF Eporter template with the following css code: .
verteiler{
margin-top:10px;
float:left;
top:50px;
left: 100px;
height: 200px;
width:400px;
}
.teilnehmer{
margin-top:10px;
top: 50px;
float:left;
left: 600px;
height: 200px;
width:400px;
}=> aim of this all is that the pdf export should look like the last screenshot.
Thanks
Larissa
Editiermodus.png
code.png
Protokoll.doc -
Hi Larissa,
this is actually not possible - at the moment. Being focused on Single Source Publishing, all Scroll Exporters convert the content into a media neutral intermediary format. During this conversion, the parser discards all unknown HTML elements that are not content specific - such as divs that do not have a certain meaning.
That said, we are currently working on Scroll PDF Exporter 2.4, which can perserve arbitrary content and still export. I hope to hava 2.4 final available soon, possibly next week (however, no promisses about that).
In the mean time, how about using a normal table with two columns and write the "Teilnehmer" like this?:
John Doe, HR
Peter Müller, Service
Peggy Sue, MarketingCheers,
-Stefan
Please sign in to leave a comment.
Comments
4 comments