Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Pantelis 53 posts 107 karma points
    Feb 13, 2014 @ 18:53

    Thumbnail Size?

    Greetings, thanks for this package, it's really well wrapped up and super easy to install and use! :-)

    Is there a way to output larger thumbnails? Or are we stuck to this medium resolution?


  • Dennis Aaen 4440 posts 17904 karma points admin hq c-trib
    Feb 13, 2014 @ 20:05
    Dennis Aaen

    Hi Pantelis,

    You could add a with and height where you output the images from the PDF. Could it be a solution to do it like this?

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>
        xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" xmlns:Examine="urn:Examine" xmlns:Flexit.PdfThumbnails="urn:Flexit.PdfThumbnails"
        exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets Examine Flexit.PdfThumbnails ">

    <xsl:output method="xml" omit-xml-declaration="yes"/>

    <xsl:param name="currentPage"/>
    <xsl:variable name="mediaItem" select="/macro/mediaItem"/>

    <xsl:template match="/">
    <xsl:if test="$mediaItem">
        <xsl:variable name="pdf" select="Flexit.PdfThumbnails:GetMedia($mediaItem/File/@id,0)"/>
        <h2><xsl:value-of select="$pdf/@nodeName"/></h2>
        <a href="{$pdf/umbracoFile}">Get full PDF here</a>
        <xsl:for-each select="$pdf//pdfThumbnails/file" >
            <img src="{.}" width="800" height="500"/>



    Now you can specify the width and the height of the images from the PDF.

    Hope this helps,


  • Pantelis 53 posts 107 karma points
    Feb 14, 2014 @ 11:27

    Hi Dennis,

    Thanks for the input, but this would actually strech the image in the frontend. I'm sorry maybe I was not that clear.

    This Project extends the "GetMedia" function with automatically creating thumbnails of 595x842 pixels.

    I want it to generate bigger thumbnails, like 1200x1600 and then manage them with imagegen or smt similar.

    595x842 is enough for most cases but smaller fonts in PDF files are not very readable.

    I think 595x842 is Ghostscript's default or something like that, it seems a familiar resolution.

    Is this resolution hard fixed in Flexit.PdfThumnails.dll? Can I change that somehow?


Please Sign in or register to post replies

Write your reply to: