barryvdh / laravel-dompdf

A DOMPDF Wrapper for Laravel
MIT License
6.66k stars 966 forks source link

What setPaper Sizes are Available? #919

Open thatguy76 opened 2 years ago

thatguy76 commented 2 years ago

@barryvdh is there a resource for what sizes are allowed for the setPaper option. The link provided at the following doesn't work.

https://github.com/barryvdh/laravel-dompdf/issues/83#issuecomment-68881760

I've tried several of the options at the following link, but only some work. For example, when trying setPaper->('half-letter', 'portrait') an error is thrown on stream(). I've also found that arrays with points does not work either. Is this correct?

https://github.com/dompdf/dompdf/blob/master/src/Adapter/CPDF.php

parallels999 commented 2 years ago

That is a question for https://github.com/dompdf/dompdf This is only a laravel wrapper for Dompdf

PaolaRuby commented 1 year ago

On same file https://github.com/dompdf/dompdf/blob/06f75510a1ccc937137523f0cd6239f62586d1ef/src/Adapter/CPDF.php#L42-L100

stale[bot] commented 1 year ago

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.