[opencms-dev] PDF file destroys search result

Daniel Seidel d.seidel at alkacon.com
Fri Nov 16 08:38:01 CET 2018


Hi Arno Nym,

could you provide a problematic PDF, that I could try to fix this 
problem? I thought up to now that escaping/stripping HTML in the 
highlight snippets will suffice to get a correct HTML structure.

Best, Daniel.

Am 23.10.18 um 10:55 schrieb Arno Nym:
> Hi,
> does anybody have experience that pdf files can destroy the search 
> result? We use OpenCMS 10.5.4 with the code from OpenCMS 
> (config jsp-search-00001.xml with formatter jsp-search-formatter.jsp).
> Problem: The snippet length is not maintained and it is almost the 
> entire file in the output.
> In the formatter i found this:
> <<
> "<%-- The import is only necessary to avoid highlighting snippets that 
> destroy the HTML structure --%>"
> <%@ page import="org.opencms.util.CmsHtmlConverter"%>
> >>
> ...but despite i get the problem.
> Thanks for any tip.
> A.
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
-- 
Daniel Seidel
  
-------------------

Alkacon Software GmbH & Co. KG - The OpenCms Experts
Daniel Seidel
An der Wachsfabrik 13
50996 Koeln, DE
  
Tel: +49 (0)2236 3826-16
Fax: +49 (0)2236 3826-20
Email: d.seidel at alkacon.com

http://www.alkacon.com
http://www.opencms.org

Amtsgericht Köln, HRA 32185, USt-IdNr.: DE259882372
Vertreten durch: Alkacon Verwaltungs GmbH
Geschäftsführer: Alexander Kandzior, Amtsgericht Köln, HRB 88218

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20181116/099ee773/attachment.htm>


More information about the opencms-dev mailing list