WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: article2pdf] Bold tags not converted to PDF - can't figure out why not. (2 posts)

  1. GeoffreyTransom
    Member
    Posted 5 years ago #

    Hi y'all.

    I'm using WP 2.8.2 with article2pdf 0.27; I figured out how to get the thing to link properly to my post pages (adding the following code to thecontent.php)

    $gtlinkpdf=get_permalink();
    <?php if($single) { ?>
                    |&nbsp;<a href="<?php echo $gtlinkpdf;?>?article2pdf=1"><img src="../images/pdf.png" /></a>
    <?php } ?>

    The script gets the right content, and the PDF is produced.

    The problem is that every HTML bold tag is completely removed, along with the text in between - BUT if it is bold-italic, the text appears in the PDF but is only italic.

    So
    <b>text</b> does not print in PDF at all
    and
    <i><b>text</b></i> prints in the PDF as text, not text

    HAs anyone experienced a similar problem? I thought perhaps it might be an issue of allowed tags, but it seems nbot.

    Also, if quotes are replaced by their codes, right-single-quotes is replaced by a question mark.

    Any assistance would be greatly appreciated.

    Cheerio

    GT
    <b>GT's Market Rant</b>

  2. Marc Serra
    Member
    Posted 4 years ago #

    try with

    <strong>text</strong>

    That works for me! Good luck!

Topic Closed

This topic has been closed to new replies.

About this Topic