-
-
Notifications
You must be signed in to change notification settings - Fork 704
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
Support page marks and bleed #471
Comments
These features should be quite easy to add, using a SVG file for crop marks and another one for crosses, and applying them to the bleed area box. |
Hello! |
Hi @dark-light-cz! You want In In In You can then use a list where I think that's all! If you have any questions, you can fork and push what you've done even if it doesn't work, I'll help you to solve the problems you meet! |
Hi @liZe I re-wrote your implementation of bleed as you suggest in my fork in dark-light-cz@05446f5 If you like it I can create pull request. Only thing I'm not sure with is changes in weasyprint/pdf.py. Can you please take a look at it and tell me whether it is right. I'm not sure why there is dividing by 2 in create of self.BleedBox and I'm not sure if there should be used left or right on x axis and top or bottom on y axis. If you want my patch to included we propably need some tests. If so, please suggest me how to do it. |
@dark-light-cz Sorry for the delay. Yes, that's cool, thank you, you can create a pull request! I'll merge it and clean a couple of little things later. |
Version 0.41 ------------ Released on 2017-10-05. WeasyPrint now depends on pdfrw >= 0.4. New features: * `#471 <https://github.com/Kozea/WeasyPrint/issues/471>`_: Support page marks and bleed. Bug fixes: * `#513 <https://github.com/Kozea/WeasyPrint/issues/513>`_: Don't crash on unsupported image-resolution values. * `#506 <https://github.com/Kozea/WeasyPrint/issues/506>`_: Fix @font-face use with write_* methods. * `#500 <https://github.com/Kozea/WeasyPrint/pull/500>`_: Improve readability of _select_source function. * `#498 <https://github.com/Kozea/WeasyPrint/issues/498>`_: Use CSS prefixes as recommanded by the CSSWG. * `#441 <https://github.com/Kozea/WeasyPrint/issues/441>`_: Fix rendering problems and crashes when using @font-face. * `bb3a4db <https://github.com/Kozea/WeasyPrint/commit/bb3a4db>`_: Try to break pages after a block before trying to break inside it. * `1d1654c <https://github.com/Kozea/WeasyPrint/commit/1d1654c>`_: Fix and test corner cases about named pages. Documentation: * `#508 <https://github.com/Kozea/WeasyPrint/pull/508>`_: Add missing libpangocairo dependency for Debian and Ubuntu. * `a7b17fb <https://github.com/Kozea/WeasyPrint/commit/a7b17fb>`_: Add documentation on logged rendering steps.
Version 0.41 ------------ Released on 2017-10-05. WeasyPrint now depends on pdfrw >= 0.4. New features: * `#471 <https://github.com/Kozea/WeasyPrint/issues/471>`_: Support page marks and bleed. Bug fixes: * `#513 <https://github.com/Kozea/WeasyPrint/issues/513>`_: Don't crash on unsupported image-resolution values. * `#506 <https://github.com/Kozea/WeasyPrint/issues/506>`_: Fix @font-face use with write_* methods. * `#500 <https://github.com/Kozea/WeasyPrint/pull/500>`_: Improve readability of _select_source function. * `#498 <https://github.com/Kozea/WeasyPrint/issues/498>`_: Use CSS prefixes as recommanded by the CSSWG. * `#441 <https://github.com/Kozea/WeasyPrint/issues/441>`_: Fix rendering problems and crashes when using @font-face. * `bb3a4db <https://github.com/Kozea/WeasyPrint/commit/bb3a4db>`_: Try to break pages after a block before trying to break inside it. * `1d1654c <https://github.com/Kozea/WeasyPrint/commit/1d1654c>`_: Fix and test corner cases about named pages. Documentation: * `#508 <https://github.com/Kozea/WeasyPrint/pull/508>`_: Add missing libpangocairo dependency for Debian and Ubuntu. * `a7b17fb <https://github.com/Kozea/WeasyPrint/commit/a7b17fb>`_: Add documentation on logged rendering steps.
WARNING: Ignored
marks: crop
at 4:5, unknown property.The text was updated successfully, but these errors were encountered: