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

Having trouble installing Oxygen? Got a bug to report? Post it all here.
DAN SEA
Posts: 59
Joined: Tue Sep 13, 2022 4:13 pm

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

Post 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!
chrispitude
Posts: 907
Joined: Thu May 02, 2019 2:32 pm

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

Post by chrispitude »

Hi Dan,

Are you referring to DITA <draft-comment> elements or to Oxygen <?oxy_comment_start/end?> review comment processing instructions?
camejerky
Posts: 1
Joined: Mon Sep 11, 2023 6:24 am

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

Post by camejerky »

The comment section is still theregeometry dash lite. I might not see the comment box if I highlight text using this technique and alter my edit choices, but if I transmit this file to others, they will see the comment boxes.
Last edited by camejerky on Tue Sep 12, 2023 4:17 am, edited 1 time in total.
julien_lacour
Posts: 498
Joined: Wed Oct 16, 2019 3:47 pm

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

Post by julien_lacour »

Hello,

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

Regards,
Julien
DAN SEA
Posts: 59
Joined: Tue Sep 13, 2022 4:13 pm

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

Post 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?
andrei_pomacu
Posts: 39
Joined: Mon Jul 25, 2022 11:18 am

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

Post 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
DAN SEA
Posts: 59
Joined: Tue Sep 13, 2022 4:13 pm

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

Post by DAN SEA »

Many thanks, Andrei!
Post Reply