WordPress.org

Ready to get started?Download WordPress

Forums

PDF24 Article To PDF
[resolved] custom document style help (10 posts)

  1. deepbevel
    Member
    Posted 2 years ago #

    I need to get a margin on an image, for some reason the pdf doean't have the same image margin as it is on my site.
    I understand how to use css in wp, so I tried to add ".post img" to the doc customization field in the settings but it had no effect. I'm not sure if this is supposed to reflect/use my style descriptions.. are there any examples of how this feature is used?
    Also I don't quite understand the purpose of the custom entry template option, is it a global template for what ever content is being converted? I'm confused..
    Any info or references to this stuff would be really helpful

    http://wordpress.org/extend/plugins/pdf24-post-to-pdf/

  2. deepbevel
    Member
    Posted 2 years ago #

    Haha! I googled and got my own request,not too encourageing.
    Just some documentation regarding using the customization feature, certainly some form of it exixts..?

  3. pdf24
    Member
    Plugin Author

    Posted 2 years ago #

    The CSS of you blog is not used when creating the PDF. For PDF creation other CSS definitions are used.
    You can customize all in plugin settings pages. There you can add an image selector to style images.
    There are also two tempaltes which can be used to customize the crated PDF file. There are a document template and an entry template.

    The entry template corresponds to one article. The information of an article is replaced with the placeholders inside the entry template. This is done for all articles if more then one article is added to the PDF.

    The document template is responsible for everything around the articles. Placeholders inside this template are replace with blog information. The final combination of the article enries is then also replaced with the content placeholder of the document template.

    The resulting code is then converted to a PDF file. The CSS of you blog isn't used for that conversion. Only the information inside the templates and the information of the CSS option is used to create the PDF file.

  4. deepbevel
    Member
    Posted 2 years ago #

    thanks, good to know that. You say "other CSS definitions are used".
    Are they listed somewhere, so plugin users can utilize the customization feature? I'd certainly like to know what they are if that info is available..?

    thanks

  5. deepbevel
    Member
    Posted 2 years ago #

    Are there definitions to display any output? or is it limited?
    I'm trying to get an archive page title instead of the heading.

  6. pdf24
    Member
    Plugin Author

    Posted 1 year ago #

    Well in the settings page of the plugin you can add css definitions for the source of the PDF file. The PDF file source is a HTML document which can be styles with the css which you can add in the settings.

  7. deepbevel
    Member
    Posted 1 year ago #

    I don't think we can create new php output, just style what's there.

  8. pdf24
    Member
    Plugin Author

    Posted 1 year ago #

    I've added a new point on TODO-List to automatically extract an archive name or page name which is then can be used as PDF title.

  9. pdf24
    Member
    Plugin Author

    Posted 1 year ago #

    Currently not part of the latest plugin version but I hope can be added to the next version.

  10. deepbevel
    Member
    Posted 1 year ago #

    I notice in the latest version there are placeholders for cateogy pages, how can I make that work to show the name of the category page in the pdf?
    I'm not even sure if I'm entering the placeholders correctly, or which to use, or if I can use more than one. Any more info on this?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic