• Resolved SVTX

    (@12ax7)


    Hey, this plugin is EXACTLY what I was looking for. I was wondering how I can make sure that stuff that belongs on a separate page could be marked with a line break short code of some kind? It’s because we have a certain structure to our documents and there is stuff that needs to be on say page 2 in all cases. Is that possible to do?

    Right now, it even does the Tables from TablePress which is awesome!

    https://www.ads-software.com/plugins/dk-pdf/

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author dinamiko

    (@dinamiko)

    Hi 12AX7,

    right now we have this shortcode for hide content in the PDF:
    https://wp.dinamiko.com/demos/dkpdf/doc/dkpdf-remove-shortcode/

    so, maybe I can create another for adding, do you think that this will solve your problem?

    tell me something about, thanks.

    Best.

    Thread Starter SVTX

    (@12ax7)

    Hi and thank you for your reply. What I think would be useful is if we could add a shortcode into the WP post that will make the pdf jump to a new page while generating it. That way, I can make sure that a certain section of the file is always on a new page, which would help to structure it significantly.

    Also, while I’m at it, can you make the pagination show the total number of pages? So it’s page 1 of 2, 2 of 2 and so on? With documents that’s very helpful.

    Thank you again for your time.

    Plugin Author dinamiko

    (@dinamiko)

    Hi 12AX7,

    I think that I get the point ??

    I’m going to create a shortcode [dkpdf-spacer height=number] that prints an ‘invisible’ div with the desired height in the PDF, this shortcode is not going to be printed in the page but in the PDF. I think that this will solve the problem, right?

    Give me some time to study and test it and I’m going to reply in this ticket, thanks.

    Best.

    Thread Starter SVTX

    (@12ax7)

    That sounds like a viable solution, yes. Please let me know if you need anything, I’m happy to assist you.

    Thread Starter SVTX

    (@12ax7)

    That said. Is there no way to force the pdf to jump to a new page? That would be so much easier than having to readjust the height of the placeholder every time the content on eg. page three changes.

    I think this plugin is on a very good way to become a very streamlined “document and contract assembler”. So far, none of the alternatives worked as flawless as this one does! ??

    Thread Starter SVTX

    (@12ax7)

    Oh, and please let us specify our own fonts somehow. I need all my documents to use Calibri (it’s installed on all our devices).

    Okay, now I’ll shut up ??

    Thread Starter SVTX

    (@12ax7)

    Oh, and somehow the styling of tablepress tables is not the same in the pdf. Is there a way to do that? Maybe just add a CSS field in the plugin settings? Listen, if you take care of all this, I will donate $100.

    Plugin Author dinamiko

    (@dinamiko)

    Hi 12AX7,

    sorry but I’m a bit busy these days, I’m going to look all of this this weekend and I’m going to reply to you asap ??

    Best.

    Plugin Author dinamiko

    (@dinamiko)

    Hi 12AX7,

    I just created this issue for page break shortcode:
    https://github.com/Dinamiko/dk-pdf/issues/15
    once implemented and tested this is going to be added in the next release (1.4) of the plugin.

    I’m going to look at how to implement adding custom fonts with the plugin (maybe this will be an premium addon), in the meanwhile you can do it manually:
    https://mpdf1.com/manual/index.php?tid=501

    About adding custom css, I’m going to look at how to implement this in the plugin too, this is something that will be usefull, thanks for the suggestion ??

    Finally, if you want to customize the PDF, you can override plugin templates in your theme and customize these templates, more info here:
    https://wp.dinamiko.com/demos/dkpdf/doc/how-to-use-dk-pdf-templates-in-your-theme/

    I’m offering a paid customization service (about 75$ depending of the complexity of the theme), if you’re interested in it, you can write to me at: [email protected]

    Best.

    Thread Starter SVTX

    (@12ax7)

    Hi and thank you for this very comprehensive answer. I’m happy to donate to the cause but I like tweaking stuff myself so a customization is probably not required.

    The only thing I’m definitely missing now is the total pages count in the pagination. If that’s possible too then I will look no further. You’re taking a lot of work off my desk with this ??

    Thank you.

    Plugin Author dinamiko

    (@dinamiko)

    Hi 12AX7,

    I just did an upgrade (1.4) that comes with pagebreak shortcode and filters for changing pagination:

    pagebreak shortcode
    https://wp.dinamiko.com/demos/dkpdf/doc/dkpdf-pagebreak/

    use this code in your theme functions.php for changing pagination content:
    https://gist.github.com/Dinamiko/42a0ac6778b0331d6b64
    this example changes default pagination content for: Pages current page of total pages.

    Best.

    Plugin Author dinamiko

    (@dinamiko)

    Hi 12AX7,

    Please mark this ticket as resolved, I can’t see the checkbox for doing this in this ticket, thanks.

    Best.

    Thread Starter SVTX

    (@12ax7)

    Man, you’re a STAR!

    Thread Starter SVTX

    (@12ax7)

    Page break shortcode works like a charm.

    Plugin Author dinamiko

    (@dinamiko)

    Hi 12AX7,

    thanks for testing it, and for all your feedback ??

    Best.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Nice! Just one little thing’ is closed to new replies.