Closed kartikkapatel closed 8 years ago
Do you mean it should return html string, instead of dom object?
No it's return dom object but i need only content of that page , do u have any function that help to get only direct string?? if u have any wiki of the library then please share with us. thank you
So, is there any way to return the HTML string? My main project use DomCrawler from Symfony so it would be nice if I can just get and pass the html string to my current parser.
Sorry for late response. I am unable to continue this project for my own work. I will continue to improve this package as soon as possible. thanks for the suggestion. 👍
$pdf->html() will now return as html string. if you want to get the dom object, just use $pdf->getDom();
please test it on your own. I already tested it, but I would like you guys to test this too.
@mgufrone Tested and it's working now without any issue :clap:, although the html() method still calls the getDom() to extract HTML which might cost some performance when dealing with a large PDF.
great. I'm still working on it so it will directly return as html.
First of all thank You for such wonderful library.
it was very help full to me and i also just need the only html from $html = $pdf->html(); object.