Page 1 of 1

Is there any way to output pdf - with only highlights, without comments?

Posted: Fri Sep 08, 2023 9:45 am
by DAN SEA
Hi all!
Is there any way to output pdf - with only highlights, without comments?
Why this question arose: because the document contains a large number of comments that not everyone will be interested in, unlike highlights. Is it possible to output such a separate pdf (without comments, only with highlights)?
Thanks in advance!

Re: Is there any way to output pdf - with only highlights, without comments?

Posted: Sat Sep 09, 2023 4:41 pm
by chrispitude
Hi Dan,

Are you referring to DITA <draft-comment> elements or to Oxygen <?oxy_comment_start/end?> review comment processing instructions?

Re: Is there any way to output pdf - with only highlights, without comments?

Posted: Mon Sep 11, 2023 10:36 am
by julien_lacour
Hello,

Could you also indicate which Oxygen version you are using and which PDF scenario you are running?

Regards,
Julien

Re: Is there any way to output pdf - with only highlights, without comments?

Posted: Mon Sep 11, 2023 2:34 pm
by DAN SEA
For pdf output I am using CSS and scenario parameter "show.changes.and.comments" and Oxygen version 25.1. And what i need to do for displaing only highlights, without comments?

Re: Is there any way to output pdf - with only highlights, without comments?

Posted: Wed Sep 13, 2023 2:50 pm
by andrei_pomacu
Hi Dan,

In /out/pdf-css-html5/your_publication.merged.html file you can see which CSS rules add the elements that you need to hide. Here is a post explaining how to debug the CSS.
You need to keep only the highlights without the comments.
The elements that adds the comments in the publication are .oxy-comment , oxy-rage-start and oxy-range-end. You can hide them using display:none rule.

Code: Select all

.oxy-comment {
   display: none;
}

*[class ~= "oxy-range-start"] {
    display: none;
}

*[class ~= "oxy-range-end"] {
    display: none;
}
Regards,
Andrei

Re: Is there any way to output pdf - with only highlights, without comments?

Posted: Wed Sep 13, 2023 3:01 pm
by DAN SEA
Many thanks, Andrei!