<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Recreate PDF preview of document? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/recreate-pdf-preview-of-document/m-p/136935#M36748</link>
    <description>&lt;P&gt;You can create missing renditions using rendition name.&lt;/P&gt;
&lt;PRE&gt;document.createThumbnail("pdf", true);
document.createThumbnail("doclib", true);
document.createThumbnail("imgpreview", true);
document.save();&lt;/PRE&gt;
&lt;P&gt;Can you provide additional details on convert/transformation improvements?&lt;/P&gt;</description>
    <pubDate>Wed, 24 Nov 2021 09:24:11 GMT</pubDate>
    <dc:creator>angelborroy</dc:creator>
    <dc:date>2021-11-24T09:24:11Z</dc:date>
    <item>
      <title>Recreate PDF preview of document?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/recreate-pdf-preview-of-document/m-p/136932#M36745</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;How can I write a javascript which recreates the PDF preview of a document?&lt;/P&gt;&lt;P&gt;For thumbnails you can use the following tow commands for recreation:&lt;/P&gt;&lt;P&gt;document.createThumbnail("doclib", true);&lt;BR /&gt;document.save();&lt;/P&gt;&lt;P&gt;Reason ist, that I have sveral documents where the preview is not working. The reason for this problem was a transfomer issue combined with to few system resources. Using the above command I was able to recreate all thumbnails.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 12:57:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/recreate-pdf-preview-of-document/m-p/136932#M36745</guid>
      <dc:creator>nettania</dc:creator>
      <dc:date>2021-11-23T12:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate PDF preview of document?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/recreate-pdf-preview-of-document/m-p/136933#M36746</link>
      <description>&lt;P&gt;Try using:&lt;/P&gt;
&lt;PRE&gt;document.createThumbnail("pdf", true);
document.save();&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Nov 2021 16:34:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/recreate-pdf-preview-of-document/m-p/136933#M36746</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2021-11-23T16:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate PDF preview of document?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/recreate-pdf-preview-of-document/m-p/136934#M36747</link>
      <description>&lt;P&gt;Thank you for the information. Can this method also be used for images?&lt;/P&gt;&lt;P&gt;I have two examples:&lt;/P&gt;&lt;P&gt;One image where thumbnail (detail view) and preview (gallery view) is working, the image has two subnotes:&lt;/P&gt;&lt;PRE&gt;cm:doclib
cm:imgpreview&lt;/PRE&gt;&lt;P&gt;On an image where thumbnail and preview does not work, this subnodes do not exists.&lt;/P&gt;&lt;PRE&gt;document.createThumbnail("doclib", true);
document.createThumbnail("imgpreview", true);
document.save();&lt;/PRE&gt;&lt;P&gt;Would this work, or how can I write a script which creates thes two subnodes?&lt;/P&gt;&lt;P&gt;And last question, is there a possibility to improve the "convert" process?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 09:05:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/recreate-pdf-preview-of-document/m-p/136934#M36747</guid>
      <dc:creator>nettania</dc:creator>
      <dc:date>2021-11-24T09:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate PDF preview of document?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/recreate-pdf-preview-of-document/m-p/136935#M36748</link>
      <description>&lt;P&gt;You can create missing renditions using rendition name.&lt;/P&gt;
&lt;PRE&gt;document.createThumbnail("pdf", true);
document.createThumbnail("doclib", true);
document.createThumbnail("imgpreview", true);
document.save();&lt;/PRE&gt;
&lt;P&gt;Can you provide additional details on convert/transformation improvements?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 09:24:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/recreate-pdf-preview-of-document/m-p/136935#M36748</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2021-11-24T09:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate PDF preview of document?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/recreate-pdf-preview-of-document/m-p/136936#M36749</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thank you for the clarification, this has helped a lot.&lt;/P&gt;&lt;P&gt;According to the convert performance:&lt;/P&gt;&lt;P&gt;Currently we are not using the T-Engine, this is a future project of us. We are using the jodconverter an image magick. This is the currentl configuration of alfresco-global.properties:&lt;/P&gt;&lt;PRE&gt;#
# External locations
#-------------
jodconverter.officeHome=/usr/lib/libreoffice
jodconverter.portNumbers=8101
jodconverter.enabled=true

### Jod converter file size settings ###
content.transformer.JodConverter.extensions.docx.pdf.maxSourceSizeKBytes=15000

#
# Image magick
#
img.root=
img.exe=/usr/bin/convert&lt;/PRE&gt;&lt;P&gt;If I execute the script to create the different renditions, al lot of convert processes are started parallel. Is there a chance to set the max number of parallel convert processes?&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 10:18:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/recreate-pdf-preview-of-document/m-p/136936#M36749</guid>
      <dc:creator>nettania</dc:creator>
      <dc:date>2021-11-24T10:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Recreate PDF preview of document?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/recreate-pdf-preview-of-document/m-p/136937#M36750</link>
      <description>&lt;P&gt;You may try using an asynchronous action for that process, since this kind of elements are executed using a Thread Pool.&lt;/P&gt;
&lt;PRE&gt;default.async.action.threadPriority=1
default.async.action.corePoolSize=8
default.async.action.maximumPoolSize=20&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Nov 2021 11:05:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/recreate-pdf-preview-of-document/m-p/136937#M36750</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2021-11-24T11:05:12Z</dc:date>
    </item>
  </channel>
</rss>

