I have a clean HTML page. I need to print (download) it as a pdf file. I have searched in internet. But everyone gives some plugins and libraries. Can I do that without those? I mean how to download as pdf using php code. I am using codeigniter  &lt;table&gt;&lt;tr&gt; &lt;td&gt;Name&lt;/td&gt; &lt;td&gt;&lt;?php echo $name;?&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/table&gt;   This is how my code looks. $name value will be dynamic
I have an HTML (not XHTML) document that renders fine in Firefox 3 and IE 7.  It uses fairly basic CSS to style it and renders fine in HTML.  I'm now after a way of converting it to PDF.  I have tried:   : it had huge problems with tables.  I factored out my large nested tables and it helped (before it was just consuming up to 128M of memory then dying--thats my limit on memory in php.ini) but it makes a complete mess of tables and doesn't seem to get images.  The tables were just basic stuff with some border styles to add some lines at various points; : I actually had better luck with this.  It rendered some of the images (all the images are Google Chart URLs) and the table formatting was much better but it seemed to have some complexity problem I haven't figured out yet and kept dying with unknown node_type() errors.  Not sure where to go from here; and : this seems to work fine on basic HTML but has almost no support for CSS whatsoever so you have to do everything in HTML (I didn't realize it was still 2001 in Htmldoc-land...) so it's useless to me.   I tried a Windows app called Html2Pdf Pilot that actually did a pretty decent job but I need something that at a minimum runs on Linux and ideally runs on-demand via PHP on the Webserver.  What am I missing, or how can I resolve this issue?
Allow User to input HTML in ASP.NET MVC - ValidateInput or AllowHtml number of quadratic residues in finite field Is there a way to determine how many quadratic residues are there in the finite field $F_q$ for $q = p^k$?  It seems if $q=p$ exactly $(p-1)/2$ are residues and the same amount are not. Does analogy holds for $q = p^k$?  Thanks for any input. Expressing an opinion: to me or for me? If a two vectors $\bf u$ and $\bf v$ in linearly independent, can their images be linearly dependent given they were transformed by a linear transformation $T$? I think not. My reasoning If the images are linearly dependent, then $c_1T({\bf u})+c_2T({\bf v})={\bf 0}$ for scalars $c_1$ and $c_2$, not both $0$. Then $c_1T({\bf u})+c_2T({\bf v})={\bf 0}$ $T(c_1{\bf u}+c_2{\bf v})=T({\bf 0})$ $c_1{\bf u}+c_2{\bf v}={\bf 0}$ Therefore, ${\bf u}$ and $\bf v$ are linearly dependent. My reservation A homework problem seems to contradict the above. Here's the problem: Let $\mathbb R^n\rightarrow\mathbb R^m$ be a linear transformation. Suppose $\{{\bf u},{\bf v}\}$ is a linearly independent set, but $\{T({\bf u}),T({\bf v}\})$ is a linearly dependent set. Show that $T({\bf x})={\bf 0}$ has a nontrivial solution. Why Does The Background Image Not Show in Orthographic View? Anvil, extra lines thingies Let us say you are in an inertial reference frame with a circular planar disk. If you take your meter measuring rods (or perhaps tape measure) you can find the diameter and circumference of the disk. If you divide the circumference by the diameter, you will get exactly $\pi$. Now you start rotating the disk. A book I have claims that now the ratio will be different (lets call it $\pi_\circ$ to avoid ambiguity.) This has caused to reevaluate my understanding of special relativity (this is a set up to general relativity, but the problem itself only requires the special theory.) My problem is that, sure, the measuring rods (or tape) would contract on the circumference, but wouldn't the circumference contract a similar amount, therefore giving a measurement of $\pi$ in every reference frame according to your own measuring rods. Of course, this reasoning goes on to make me question how I understood all of special relativity up this point. How to change keyboard layout in Lubuntu 15.10? I have recently upgraded my PC from Lubuntu 14.10 to 15.10. Before the upgrade my keyboard layout matched my Danish keyboard. But after the upgrade I probably have a standard English/US layout.   Preferences/Language Support, doesn't let me configure the keyboard layout. Preferences/Keyboard and Mouse, only let me configure stroking delay and similar.    I don't know about iBus and fcitx, as far as the tooltip infomation tells me, its for more complex languages such as Chinese.  I don't have a US icon in the taskbar, no keyboard and/or language icon at all.  Things I have tried:   Running the following in a terminal works, but only until the next reboot:  setxkbmap -layout dk  I got the following parameter in the file /etc/default/keyboard:  XKBLAYOUT="dk"  Installing and running the app Lxkeymap changes the keyboard to Danish when I run it, but rebooting will change the layout back to US.   I don't want anything fancy, I just want to set my keyboard layout to Danish. How can I do that? Cat 5/6 in same conduit as power: is NM-B required, or is THHN acceptable? Preface: I'd like to avoid the question of whether one should run data and power together; my question is focused on Code compliance.  I'm trying to ensure I interpret Code correctly when running Cat 5/6 cabling and power together in the same conduit.  For starters, I understand that nothing in Code prohibits one from doing this; I'm trying to ensure I understand how to do it properly.  I'm wiring a basement office for power and data, and I'll be running the electrical in EMT.  My plan was to pull THHN for the power rather than pull NM-B, but then 800.133(2) Exception 1 made me scratch my head.  Is my understanding of the Article that if I want to run both data (Cat6) and power in the same conduit, that the power needs to be sheathed (i.e. NM-B).  Is it unacceptable to pull individual THHN conductors and the Cat6 together in the same conduit?     800.133 2) Other Applications. Communications wires and cables shall be separated at least 50 mm (2 in.) from conductors of any electric   light, power, Class 1, non–power-limited fire alarm, or medium-power   network-powered broadband communications circuits.      Exception No. 1: Where either (1) all of the conductors of the   electric light, power, Class 1, non–power-limited fire alarm, and   medium-power network-powered broadband communications circuits are in   a raceway or in metal-sheathed, metal-clad, nonmetallic-sheathed, Type   AC, or Type UF cables, or (2) all of the conductors of communications   circuits are encased in raceway. I have some stuff in settings.py that I'd like to be able to access from a template, but I can't figure out how to do it. I already tried  {{CONSTANT_NAME}}   but that doesn't seem to work. Is this possible? Profile Bug - Reputation Summary Not Displaying All Lines When to use self over $this? In PHP 5, what is the difference between using self and $this?  When is each appropriate? How to create an extruded halftone effect in illustrator or photoshop Derivative of function with 2 variables Convert short[] into a grayscale image My father in law is travelling to France, for 4 days, (01/07-04/07). Is there a minimum duration for which the travel insurance needed to apply for a Schengen visa must be valid? In other words, can his travel insurance cover just the duration of the trip, or should it last longer? We just had a scenario where the enemy set up a 'death trap' with arrow slits covering a corridor, allowing them to pop in, shoot, then pop out -- all without actually entering the corridor.  Which was fine in and of itself, until my cleric ran through the corridor at top speed, with Spirit Guardians up.  The DM and I discussed it, and as far as we can tell the spell doesn't require a line of sight and isn't blocked by walls -- just being 'in range' gets you the damage.  So I wiped out an entire encounter with one well placed third level spell.  In and of itself, that doesn't seem too OP -- at level 5/6 a third level spell is a pretty big investment!  But it still seems a bit odd that I can do it without even LOS.  Are there any rules I'm missing? I was reading a book and this sentence seemed a little odd to me:     At approximately 19.45 hours the two men rose, stretched and yawned. They picked up their gear and stood at the door, ...   What does the first part mean? If it's the exact time, shouldn't it be 19:45? And if it's duration, shouldn't it be "After 19.45 hours"?  (The story here happens at an airbase, if it's of any relevance)    Edit: The book I've quoted is this:   by John Creed.   The author is Irish and the text is set in northern England/Ireland. What is the origin of "man on the spot"? What is the origin of "man on the spot" ?   defines on the spot and uses as an example man on the spot.     on the spot -  at the place in question; there; "they were on the spot when it happened"; "it had to be decided by the man on the   spot" (Emphasis added)   Some evidence suggests that the origin of the phrase refers to decisions made by officials of the past British empire and actions taken by them. For every matrix $A\in M_{2}( \mathbb{C}) $ there's  $X\in M_{2}( \mathbb{C})$ such that $X^2=A$?