-
DescriptionSo far we are using a custom wiki code to create the title page in our documents. This title page is being converted to PDF by the Polarion export to PDF function. To be able to use your PDF exporter, I would like to hide the custom wiki code, so it's not converted to PDF by this exporter. Is this possible somehow? In Polarion it's possible to hide content from being shown in PDFs by wiki command {show:wiki}, but this command will hide the content in this exporter but also in Polarion's exporter. Could there be another command which would hide some content only when your exporter is used? If this is not possible, could you add an option to skip the cover page creation completely and to add just a blank page instead (without header and footer)? Then we could continue to use the custom script to create the title page. Motivationsee above Proposed Solution (optional) |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Our aim is to make the PDF-Exporter as compatible as possible. Therefore the wiki macros work in the same way for the internal PDF-exporter and ours. |
Beta Was this translation helpful? Give feedback.
-
There is a simple way to hide all wiki blocks from the resulting pdf by using following css without hardcoding any specific IDs: .polarion-dle-wiki-block {
display: none;
} Alternatively you can hide only the first wiki block: .polarion-dle-wiki-block:not(.polarion-dle-wiki-block ~ .polarion-dle-wiki-block) {
display: none;
} As for the leading blank page - you can just create empty cover page like this one: @schlami |
Beta Was this translation helpful? Give feedback.
-
option 1: option 2: |
Beta Was this translation helpful? Give feedback.
-
In the project's administration pane -> PDF Export -> CSS:
This CSS will be applied during SBB PDF export only.
There was already discussion about this (#74 (comment)). @page :nth(1), :nth(2), :nth(3) {
border-bottom: none;
@top-left {
content: "";
}
@top-center {
content: "";
}
@top-right {
content: "";
}
@bottom-left {
content: "";
}
@bottom-center {
content: "";
}
@bottom-right {
content: "";
}
} |
Beta Was this translation helpful? Give feedback.
-
Adding the CSS as described above works for me! This looks like a good solution which solves my problem. Thank you all for your help! |
Beta Was this translation helpful? Give feedback.
In the project's administration pane -> PDF Export -> CSS:
This CSS will be applied during SBB PDF export only.
There was already discussion about this (#74 (comment)).
If you need to hide header/footer not just on the first page then you can use something like this: