¿Cómo convertir Html a Pdf en el navegador en vivo en el siguiente toque?
Frecuentes
Visto 166 veces
0
I want to convert my html page into pdf
format, on the net tab in my project. What is the best solution to achieve this? Thanks in advance.
Below is the code that I have so far:
include_once("dompdf/dompdf_config.inc.php");
$dompdf = new DOMPDF();
$dompdf->load_html($content);
$dompdf->render();
$dompdf->stream('sample.pdf');
1 Respuestas
1
¿Has probado esta biblioteca?
jsPDF | http://parall.ax/products/jspdf
It only uses javascript, so you don't need php.
Respondido el 13 de Septiembre de 13 a las 13:09
No i haven,t, i am new to this environmnet - Hunarmán
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas pdf-generation fpdf dompdf or haz tu propia pregunta.
Are you saying you want to capture dynamic document content and convert to PDF? Or can the document be reconstructed on the server? Can you better describe your layout and content flow? You mention "next tap" and "net tab"? Do you have an HTML tab and a PDF tab. Or does the user "tap" and a PDF is produced? - BrianS
It is new tab brother - Hunarman
Still need a bit more detail about the process. A tab on the same page (HTML+JS tabs)? A browser tab? Does the user have to do anything or should it be rendered at the same time? - BrianS