Viewing 9 replies - 1 through 9 (of 9 total)
  • just curious, why would you want to link to the PDF from within the PDF? or do you mean to make the link appear from your wordpress post/page? if the latter, check under Presentation options in Seettings > WP Post to PDF – the options for link or icon embed are stated clearly there.
    cheers,
    -jennyb

    Thread Starter eximoto

    (@eximoto)

    hi, i want to link to the pdf whereever it is stored. so i want to link from my template to the pdf.

    Greetings eximoto

    Gotcha, well in that case, check the options settings like I described above. There are instructions for the code to copy to your template depending on whether you want a text link or an icon link.
    best,
    -jennyb

    Thread Starter eximoto

    (@eximoto)

    Hi,
    call me superdump, but i do not find any detail for including a code. i only got 3 options:

    Accessibility Options
    Presentation Options
    PDF Formatting Options

    In Presentation Option i got “Icon Position” to insert an icon and “PDF Download Link” which contains an img example of an icon. But where the heck is the php download function? ??

    Hey superdump – haha KIDDING

    Actually it’s my bad, I answered too quickly and forgot that these two fields work together. So, under Presentation Options you have Icon Position and PDF download link.

    Icon Position – you can choose Manual, then paste the code listed in your template
    <?php if (function_exists("wpptopdf_display_icon")) echo wpptopdf_display_icon();?>

    Then you can place the image, in the form of an html <img>, with absolute link to the src, into the field next to PDF Download link. Alternatively, you could probably just enter text – though I haven’t tried that as I’m using a custom icon. I think by default the plugin has an icon you can use, so you don’t have to upload your own – depends on how you want it to look.

    make better sense?
    hope that helps!
    -jennyb

    Thread Starter eximoto

    (@eximoto)

    I think my idiotlevel is still rising. I do NOT want to have a icon, i want to have a textlink to the pdf-file out of a single post. I want to link from my single.php to the pdf like this way:<a href="<?php echo $wp_upload_dir['baseurl']."/wp-post-to-pdf-cache/".$postid->post_name.".pdf";?>the pdf file from this post</a> :-/

    if you just write “the pdf file from this post” or whatever text you want into the “PDF Download link” field, then copy that code I posted above, your text will show with an automatic link to the file.

    ??

    Thread Starter eximoto

    (@eximoto)

    THANKS JENNY. Now i understand what you mean with that the two fields work together. The second field does not have to have <img> it can contain anything. Wow, thats a criminal plugin. Thank you Jenny Beaumont.

    You are very welcome eximoto ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How to embed in template?’ is closed to new replies.