Looking for something?

You will find your answers here!

    Sorry, we didn't find any relevant articles for you.

    Send us your queries using the form below and we will get back to you with a solution.

    PDF pregled

    Pregledajte PDF dokument na stranici s pitanjima u KB-u

    Da bi se na vašoj stranici pitanja nalazio pdf pregled, potrebno je dodati slijedeće kroz prilagođavanje na vrhu vaše "stranice s pitanjima":

     <script type = "text / javascript">
    $ (dokument) .ready (funkcija () {
    answer = process_answer_using_pdf_preview ('{{question.answers.first.cleaned_body}}');
    document.getElementById ("pdf_answer"). innerHTML = odgovor; });
    </script>
    
    <script type = "text / javascript">
    resizeIframe = funkcija (iframe) {
    iframe.height = '700px'
    iframe.width = '700px'
    }
    </script>
    <div id = "pdf_answer"> </div>


    Visina i širina okvira za pregled PDF-a mogu se mijenjati, u ovom su primjeru obje postavljene na 700px.

    Na vrhu okvira za pregled PDF-a nalazi se i veza do određenog dokumenta koja se prikazuje u okviru.


    PS. ne zaboravite ukloniti {{question.answers.first.cleaned_body}} sa stranice pitanja, jer će se odgovor pojaviti dva puta, osim ako nije uklonjen.


    Was this article helpful?

    Still can't find what you are looking for?

    Our award-winning customer care team is here for you.

    Contact Support

    Powered by