Skip to content
This repository has been archived by the owner on Jun 6, 2020. It is now read-only.

Require public method getPage #4

Closed
tonchik-tm opened this issue Sep 14, 2015 · 2 comments
Closed

Require public method getPage #4

tonchik-tm opened this issue Sep 14, 2015 · 2 comments

Comments

@tonchik-tm
Copy link

I need public method \Gufy\PdfToHtml\Html::getPage for parse html. \PHPHtmlParser\Dom::parse crashed my html on some tages (br, b) on some linux servers. I can't find reason.

Example:

public function getPage ($page) {
    return isset($this->contents[$page]) ? $this->contents[$page] : null;
}
@mgufrone
Copy link
Owner

l believe i've added this method in this package's class.

// I assume you've already done the prep parts, so this code just give you a sample of how to move to the other pages

$html = $pdf->html();

// move to another page
$html->goToPage(2);

@tonchik-tm
Copy link
Author

method goToPage() return DOM, but i need HTML text :(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants