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 ->paperSize()-method #33

Merged
merged 6 commits into from
Jan 14, 2024
Merged

Add ->paperSize()-method #33

merged 6 commits into from
Jan 14, 2024

Conversation

jeffreyvanhees
Copy link
Contributor

@jeffreyvanhees jeffreyvanhees commented Jan 12, 2024

As promised in #18 (reply in thread)

This PR adds a paperSize()-method on the PdfBuilder. Also wrote a test and added an example to the docs.

use Spatie\LaravelPdf\Facades\Pdf;

Pdf::view('pdf.receipt', ['order' => $order])
 ->paperSize(57, 500, 'mm')
 ->save('/some/directory/receipt-12345.pdf');

@freekmurze freekmurze merged commit 0a4d46e into spatie:main Jan 14, 2024
1 check passed
@freekmurze
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants