Jump to content

zantins

New Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by zantins

  1. Hi Has anyone used MPDF or another html -> pdf library? My problem is as follows: I have written some software in PHP that allows a user to design invoices using the html canvas and jquery. The document on the screen is the exact dimensions of A5 paper. Once they finish the design needs do put on to A4 in a PDF with 2 x A5 next to each other. So basically the design is displayed twice on the pdf page to fill the A4 entirely. The problem is, and i think this is where i don't udnerstand how a print document like a PDF works. If i set the PDF quality to 300DPI, which is what i need it to be for high quality prints, the images are shrunk right down on the pdf, so they literally only cover about 1/4 of the A4 page... but in reality the dimensions of the image should fill half of the A4 twice (so to fill the whole A4 sheet) I don't understand why the PDF file is shrinking the image to the incorrect size...i mean it clearly looks the correct size on the screen...any ideas?
  2. Lets use the above quoted line as an example. First thing i would suggest here is to remove the last slash, the question mark and the $ from your query string. You can put it back later after you tested a few things. Next you should reference the page slug with "pagename" not "page_id" The next thing would be that this function should be called within the wordpress "init" action hook. For example: add_action("init","my_init_function"); You need to hook into the "query_vars" hook and add your variables, for example your "a" query var to the wordpress query variables: Finally, go into the wordpress admin to Settings->permalinks and hit save, to refresh your permalinks setup. Give that a try, it may need some playing around with but that is the basics of what needs to be done. You would then access your query var in the page template as: get_query_var("a");
  3. Wordpress Themes And Plugins As you may already know Wordpress is a very popular content management system. We are experts with Wordpress with the ability to quickly and cost effectively design responsive themes and build plugins that benefit your website without interfearing with it's core functionality. As a CMS is theme and template based, we have no need to charge for page count, each page will generally be the same layout. Obviously not all websites are this way but we can cater for multiple page designes if required. Not only do we provide wordpress design and development services but we can also host everything, and maintain your website's integrity for a small monthly fee. A shiny new responsive wordpress site would cost a mere £500, paid in monthly installments over 12 months takes the stress off your shoulders allowing you to enjoy the benefits of a content managed website, thats less than £1.37 a week! See what our Wordpress Web Design and Development Service can do for your business!
  4. This Look Is A Caring Look, We Are A Caring Company! As a web design, web development and software development company that care about your business and we are always on the lookout for people to give a helping hand. Our hand is extended to any business be this just for some simple advice, using our time to complete tasks for you that will help solve your problems and ambitions, or a mix of both! About Our Web Design And Development Company Tell Us What You Need The intention of this post is because we are interested in what your thoughts and issues are in relation to your online business.Do you have a website or a piece of software that you think could do with some features to make running your business simpler? Are you trying to build an online program yourself but are lost and need a professional help? Whatever the issue we would love to hear it. Building Trusting and Lasting Relationships We believe that helping is the most important aspect of a successful relationship in web development and are willing to help complete tasks that suit your budget, or even give free consultations that help your business succeed online. Open And Honest We like to be completely open and totally honest and like to helping you learn from our development expertise in the hope that it could one day help you develop your own extensions to your online business, while in the mean time removing the stress from your shoulders! So lets hear about your business, lets hear about developments you are stuck with, and lets have a look at what we can do to help. Looking forward to your replies!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.