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

Default Page Border/Margin/Padding - Remove or are these print margins? #577

Closed
MPJHorner opened this issue May 7, 2019 · 2 comments
Closed
Labels

Comments

@MPJHorner
Copy link

@MPJHorner MPJHorner commented May 7, 2019

Hey all,

Please see example below.
ticket layout

(The black line around the edge shows the edge of the paper/page)

  1. I have made custom page which doesn't exist, essentially 1/3 of A4 = DL paper size, however I overrode this,

See the example, I have used 100% width/height and also done these using pixels.

However the page padding/margin (whatever you want to call it) or maybe it is even print margins are huge? I can't see any method to override these? How can I go to the edge or closer too?

Many thanks in advance.

@devuniverse
Copy link

@devuniverse devuniverse commented Jul 13, 2020

It is helps anyone,

add this to your head

<style>
@page { margin:0px; }
</style>
@stale
Copy link

@stale stale bot commented Sep 11, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Any issues with PDF rendering itself that are not directly related to this package, should be reported on https://github.com/dompdf/dompdf instead. When having doubts, please try to reproduce the issue with just dompdf.
If you believe this is an actual issue with the latest version of laravel-dompdf, please reply to this issue so we can investigate further.
Thank you for your contribution! Apologies for any delayed response on our side.

@stale stale bot added the stale label Sep 11, 2020
@stale stale bot closed this Sep 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.