c# - Hide Footer on first page -
Text after "div class =" itemprop = "text">
It is possible to hide header / footer of a specific page's TuesPechkin document. I want the header and footer to be ignored on the first page of the PDF document, but can not find a way to achieve this goal
Installing the document as below :. Document after the API does not seem to support this. However, I have found an alternative solution for WKHTMLTOPDF that can work for you. Enter the following HTML in a file and reference this file in your footer settings.
& lt; Html & gt; & Lt; Top & gt; & Lt; Script & gt; Function option () {var vars = {}; // URL Query String Works X = document.location.search.substring (1) .split ('& amp;') Explosion; // Receive loop and key / value through each query string segment (in var i in x) {var z = x [i] .split ('=', 2); Wars [jade [0]] = unespeed (jade [1]); } // All variable parameter files passed in var x = ['frompage', 'topage', 'page', 'webpage', 'section', 'sub-section', 'sub-section']; / / Footer HTML in each page will be an element of the body 'section' from body of var y = document.getElementsByClassName ('section'); (Var j = 0; j & lt; y.length; j ++) {// if current page is equal to total pages, if (wars [x] [2]] == wars [x [1]] ) {Y [j] innerHTML = "I only have a footer on the last page"; }} & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body onload = "subst ()" & gt; & Lt; Div class = "section" & gt; & Lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;
Comments
Post a Comment