{"id":953771,"date":"2015-04-07T10:08:55","date_gmt":"2015-04-07T17:08:55","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-as-pdf-again\/"},"modified":"2015-07-07T06:31:43","modified_gmt":"2015-07-07T13:31:43","slug":"ticket-as-pdf-again","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-as-pdf-again\/","title":{"rendered":"Ticket as PDF &#8230; again"},"content":{"rendered":"<p>Unfortunately this thread is closed:<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"OZx1958EWJ\"><p><a href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-email-pdf\/\">Ticket email \/ PDF?<\/a><\/p><\/blockquote>\n<p><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;Ticket email \/ PDF?&#8221; &#8212; \" src=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-email-pdf\/embed\/#?secret=XTdeEdoC6N#?secret=OZx1958EWJ\" data-secret=\"OZx1958EWJ\" width=\"580\" height=\"327\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>But maybe we can figure out a solution together? There is at least James who is interested in such a solution&#8230;<\/p>\n<p>I think I can solve the problem with this script:<br \/>\nhttp:\/\/html2pdf.fr\/en\/default<\/p>\n<p>I would have change the mail-Template to something like this, that&#8217;s no problem:<\/p>\n<pre><code>&lt;?php\n    $content = &quot;\n&lt;page&gt;\n    &lt;h1&gt;Exemple d&#039;utilisation&lt;\/h1&gt;\n    &lt;br&gt;\n    Ceci est un &lt;b&gt;exemple d&#039;utilisation&lt;\/b&gt;\n    de &lt;a href=&#039;http:\/\/html2pdf.fr\/&#039;&gt;HTML2PDF&lt;\/a&gt;.&lt;br&gt;\n&lt;\/page&gt;&quot;;\n\n    require_once(dirname(__FILE__).&#039;\/html2pdf\/html2pdf.class.php&#039;);\n    $html2pdf = new HTML2PDF(&#039;P&#039;,&#039;A4&#039;,&#039;fr&#039;);\n    $html2pdf-&gt;WriteHTML($content);\n    $html2pdf-&gt;Output(&#039;exemple.pdf&#039;);\n?&gt;<\/code><\/pre>\n<p>My problem is: How do I get to send this PDF as an attachment? Where is the related function?<\/p>\n<p>Maybe somebody from the team or any other user has an idea&#8230;?<\/p>\n<p>Thanks,<br \/>\nn.<\/p>\n","protected":false},"template":"","class_list":["post-953771","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Ticket as PDF ... again -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-as-pdf-again\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ticket as PDF ... again -\" \/>\n<meta property=\"og:description\" content=\"Unfortunately this thread is closed: Ticket email \/ PDF? But maybe we can figure out a solution together? There is at least James who is interested in such a solution&#8230; I think I can solve the problem with this script: http:\/\/html2pdf.fr\/en\/default I would have change the mail-Template to something like this, that&#8217;s no problem: &lt;?php [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-as-pdf-again\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-07-07T13:31:43+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-as-pdf-again\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-as-pdf-again\/\",\"name\":\"Ticket as PDF ... again -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-04-07T17:08:55+00:00\",\"dateModified\":\"2015-07-07T13:31:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-as-pdf-again\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-as-pdf-again\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-as-pdf-again\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Ticket Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Event Tickets Plus\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Ticket as PDF &#8230; again\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Ticket as PDF ... again -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-as-pdf-again\/","og_locale":"en_US","og_type":"article","og_title":"Ticket as PDF ... again -","og_description":"Unfortunately this thread is closed: Ticket email \/ PDF? But maybe we can figure out a solution together? There is at least James who is interested in such a solution&#8230; I think I can solve the problem with this script: http:\/\/html2pdf.fr\/en\/default I would have change the mail-Template to something like this, that&#8217;s no problem: &lt;?php [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-as-pdf-again\/","article_modified_time":"2015-07-07T13:31:43+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-as-pdf-again\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-as-pdf-again\/","name":"Ticket as PDF ... again -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-04-07T17:08:55+00:00","dateModified":"2015-07-07T13:31:43+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-as-pdf-again\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-as-pdf-again\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/ticket-as-pdf-again\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Ticket Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/"},{"@type":"ListItem","position":4,"name":"Event Tickets Plus","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/event-tickets\/event-tickets-plus\/"},{"@type":"ListItem","position":5,"name":"Ticket as PDF &#8230; again"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/953771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/953771\/revisions"}],"predecessor-version":[{"id":953780,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/953771\/revisions\/953780"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=953771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}