WordPress.org

Ready to get started?Download WordPress

Forums

POST2PDF Converter
[resolved] Parsing shortcode doesn't work (7 posts)

  1. alxvallejo
    Member
    Posted 2 years ago #

    I'm using an embed post plugin, something like [[post-slug]] embeds the content of a post on a page.

    Converting it to a page fails to convert the shortcode :(

    http://wordpress.org/extend/plugins/post2pdf-converter/

  2. redcocker
    Member
    Plugin Author

    Posted 2 years ago #

    Hi, alxvallejo san

    If the plugin doesn't depend on WP shotcode API and it has own shortcode parser, shotrcode can't parse by POST2PDF Converter.

    I will check sourcecode of embed post plugin.

    Are you using following plugin?

    http://wordpress.org/extend/plugins/embed-posts/

  3. redcocker
    Member
    Plugin Author

    Posted 2 years ago #

    Hi, alxvallejo san

    Modify wp-content/plugins/post2pdf-converter/post2pdf-converter-pdf-maker.php.

    All you need to do is add following code around line 339

    if (function_exists('includePosts')) {
    	$content = includePosts($content);
    }
  4. alxvallejo
    Member
    Posted 2 years ago #

    Thanks for the tip! That's great except that the output is not quite as pretty as the in-line CSS I applied to the tables on my site.

    Why in-line CSS? I'm converting tables from Microsoft Word via Live Writer and due to variability and complexity of tables on my site, this is the best way to export the tables in HTML while keeping the formatting in tact.

    As an example, here is just a sample of the output with the first table row of html below. The classes of the table don't mean anything since they're tied to MS Word but the background colors and fonts are what need to be preserved. The first row should have a background color of #0099cc (blue) but the output is like this:

    http://screencast.com/t/mrkHygBAD2

    From this point, my goal is get print-friendly versions of my table with CSS formatting preserved. Your help is much appreciated but it looks like I'll need to write my own CSS print-friendly version.

  5. redcocker
    Member
    Plugin Author

    Posted 2 years ago #

    Hi, alxvallejo san

    As an example, here is just a sample of the output with the first table row of html below. The classes of the table don't mean anything since they're tied to MS Word but the background colors and fonts are what need to be preserved. The first row should have a background color of #0099cc (blue) but the output is like this:

    Do you mean to say inline CSS(background color of #0099cc) is not applied to
    PDF?

  6. alxvallejo
    Member
    Posted 2 years ago #

    Correct, the styling is not applied

  7. redcocker
    Member
    Plugin Author

    Posted 2 years ago #

    Hi, alxvallejo san

    I don't check up but this plugin can't handle some CSS properties.
    It may cease this problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic