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

Add an entry about relative URLs in the FAQ #263

Merged
merged 2 commits into from Sep 12, 2017
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Expand Up @@ -111,6 +111,17 @@ $snappy->setOption('xsl-style-sheet', 'http://path/to/stylesheet.xsl') //or loca
$snappy->generateFromHtml('<p>Some content</p>', 'test.pdf');
```

## Bugs & Support

If you found a bug please fill a detailed issue with all the following points.
If you need some help, please at least provide a complete reproducer so we could help you based on facts rather than assumptions.

* OS and its version
* Wkhtmltopdf, its version and how you installed it
* A complete reproducer with relevant php and html/css/js code

If your reproducer is big, please try to shrink it. It will help everyone to narrow the bug.

## Credits

Snappy has been originally developed by the [KnpLabs](http://knplabs.com) team.
7 changes: 7 additions & 0 deletions doc/faq.md
Expand Up @@ -66,3 +66,10 @@ table, tr, td, th, tbody, thead, tfoot {
###### *Q*: My document text is not correctly rendered, it is just black squares

*A*: Make sure you have installed `xfonts-base`, `xfonts-75dpi` and `urw-fonts`

###### *Q*: How to convert page with relative links from stdin / How to use relative media URLs

*A*: When you convert an HTML file with relative links/media URLs into PDF, you need to either:
* Switch to absolute links/media URLs
* Or use `<base></base>` tag to specify what's the base URL of those relative links.