Page 1 of 1

how to implement highlight code for docx to pdf conversion

PostPosted: Fri Sep 16, 2011 10:05 pm
by rpmajithia
hi,

i want to know how can we apply highlight code for docx to pdf conversion. i am not able to see highlighted words in my pdf file. so please help me out . thank you in advance.

hIGHLIGHT CONVERSION

PostPosted: Sat Sep 17, 2011 3:09 am
by wiram
DOCX FONT HIGHLIGHT NOT DISPLAY AFTER CONVERSION ON PDF I WANT TO HELP WHICH CODE TO MODIFY TO DISPLAY PROPER HIGHLIGHT

:? :? :? :? :? :? :? :? :? :? :? :? :?

Re: hIGHLIGHT CONVERSION

PostPosted: Tue Sep 20, 2011 11:03 pm
by jason
I just did a quick test; w:shd works in PDF output:

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
      <w:r>
        <w:rPr>
          <w:shd w:val="clear" w:color="auto" w:fill="92D050"/>
        </w:rPr>
        <w:t>222222</w:t>
      </w:r>
 
Parsed in 0.001 seconds, using GeSHi 1.0.8.4


But w:highlight is not honoured in the PDF output in 2.7.0:

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
     <w:r>
        <w:rPr>
          <w:highlight w:val="yellow"/>
        </w:rPr>
        <w:t>44444444</w:t>
      </w:r>
 
Parsed in 0.000 seconds, using GeSHi 1.0.8.4


http://www.docx4java.org/trac/docx4j/changeset/1665 and 1666 add basic support for that. As http://www.docx4java.org/trac/docx4j/changeset/1666 says, it is assumed that the specified color is recognised
as an xsl color. Handling is required for when this is not the case. Perhaps one of you could submit a patch to deal with this?

Re: hIGHLIGHT CONVERSION

PostPosted: Sat Sep 24, 2011 11:17 pm
by rpmajithia
hi jason,

thank you for your response. it works successfully. thanks once again.