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

Set the left side and right side margin when generate PDF #113

Open
ghost opened this issue Aug 10, 2016 · 1 comment
Open

Set the left side and right side margin when generate PDF #113

ghost opened this issue Aug 10, 2016 · 1 comment
Assignees
Milestone

Comments

@ghost
Copy link

ghost commented Aug 10, 2016

Thanks for the great plugin, now I am using the plugin to generate the PDF

and in the doc, there is a function:

$request->setMargin('0cm');

The problem is , it received a string, and doesn't seem can assign the different margin for different dimension,

are there any syntax for it?

Thanks a lot.

@jonnnnyw
Copy link
Owner

jonnnnyw commented Sep 1, 2016

It looks like you can do it in PhantomJS, according to the documentation.

Documentation

I will look at adding it to the library.

@jonnnnyw jonnnnyw self-assigned this Sep 1, 2016
@jonnnnyw jonnnnyw added this to the Version 4.6 milestone Sep 1, 2016
jonnnnyw added a commit that referenced this issue Nov 15, 2016
…ent margins to be applied to each edge of PDF - #113
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant