yiisoft / yii2-apidoc

Yii 2 apidoc extension.
https://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
258 stars 121 forks source link

(PDF guide) On each even page content is slightly shifted to the right #249

Closed arogachev closed 2 years ago

arogachev commented 2 years ago

What steps will reproduce the problem?

Download PDF guide or generate it.

What's expected?

The same indentation on each page.

What do you get instead?

Different indentation on odd and even pages.

Additional info

Q A
Yii version doesn't matter
Yii APIDoc version doesn't matter
PHP version doesn't matter
Operating system doesn't matter

Maybe this is by design? :thinking: Would like to know more details and history behind it. But overall it's acceptable and not a high priority right now.

samdark commented 2 years ago

@cebe anything about the topic you can remember?

rob006 commented 2 years ago

You do this when you want to print PDF on both sides of the paper - then extra margin is on the same edge, which could be used to bind the pages together.

samdark commented 2 years ago

Cool. Wasn't aware of it. Thanks.

arogachev commented 2 years ago

@rob006 Hi. Thanks for shedding light on this. What about odd pages though? Do they also have according margin?

Also I'm pretty sure that majority of people use it without printing. So maybe it's nice to have option for disabling this behavior.

cebe commented 2 years ago

I've actually seen the guide printed in a few companies already.

We could provide different versions (online and print) but it does not seem very relevant to me.

arogachev commented 2 years ago

@cebe Got i, good to know. Closing then.