I need to render pdf page with content from object. To do so I put <apex:detail>
element in page and it is working, but its showing other elements from page layout that I don't need in pdf. I tried to apply styles, but I noticed that they working only if I indicate class explicitly.
For example:
.pbSubheader {
display: none;
}
this style will hide all elements with class .pbSubheader, but if I won't to hide elements with more complicated logic then this styles are ignored, for example:
.pbBody .pbSubsection:not(:last-child) {
display: none;
visibility: hidden;
}
this style will not work. How can I achive this?
<apex:detail>
will generate