Forum Discussion

jpadilla's avatar
2 years ago

API to download thread PDF

Is there an automated way to dump contents of a thread to PDF as you would by clicking on "Get Thread PDF" via the browser while on the thread?

I'm being asked to download several threads for an important adhoc tasks.

I could always resort to a jmeter script, but if there is an API available that would be better.

5 Replies

  • jpadilla Could you please clarify if the term is exactly called like that? Our Application engineering team can research on this, but we do not see that term being used anywhere in the community code so if you point us to where this is done we can check if this is exposed via an API.

  • JohnD's avatar
    JohnD
    Khoros Alumni (Retired)
    2 years ago

    We used to support this, but this feature was removed due to potential performance issues that could impact sites.

  • jpadilla's avatar
    jpadilla
    Guide
    2 years ago
     

    For our community site, when you view a thread, there is a button to produce a PDF. See attached.

    This is the script tag:

    <div id="getPdfContainer"><a class="lia-button lia-button-secondary dtmcustomrulelink" onclick="loadAllComments()" data-dtmaction="Get Thread PDF Button Click">Get Thread PDF</a></div>

    This is a one time critical activity of about 1300 threads. 

     

  • AFAIK this is not a default button (at least I can't remember seeing it), so you might wanna investigate what that loadAllComments() method (javascript) is doing?

  • Okay, looks like we had a creative developer that creating that custom function.