Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for two wkhtmltoimage options that were missing #55

Merged
merged 3 commits into from
Apr 10, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Knp/Snappy/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,11 @@ protected function configure()
'radiobutton-svg' => null, // Use this SVG file when rendering unchecked radiobuttons
'run-script' => null, // Run this additional javascript after the page is done loading (repeatable)
'disable-smart-width' => null, // Use the specified width even if it is not large enough for the content
'enable-smart-width' => null, // Extend --width to fit unbreakable content (default)
'stop-slow-scripts' => null, // Stop slow running javascripts
'no-stop-slow-scripts' => null, // Do not stop slow running javascripts (default)
'transparent' => null, // Make the background transparrent in pngs *
'use-xserver' => null, // Use the X server (some plugins and other stuff might not work without X11)
'user-style-sheet' => null, // Specify a user style sheet, to load with every page
'username' => null, // HTTP Authentication username
'width' => null, // Set screen width (default is 1024)
Expand Down
9 changes: 8 additions & 1 deletion test/Knp/Snappy/ImageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,11 @@ public function testCreateInstance()
$testObject = new \Knp\Snappy\Image();
$this->assertInstanceOf('\Knp\Snappy\Image', $testObject);
}
}

public function testAvailableOptions()
{
$testObject = new \Knp\Snappy\Image();
$testObject->setOption('use-xserver', true);
$testObject->setOption('enable-smart-width', true);
}
}