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

Wiping the margins #640

Open
pgundlach opened this issue Dec 11, 2024 Discussed in #639 · 0 comments
Open

Wiping the margins #640

pgundlach opened this issue Dec 11, 2024 Discussed in #639 · 0 comments

Comments

@pgundlach
Copy link
Member

Discussed in #639

Originally posted by Cicorione December 10, 2024
Hi @pgundlach this is the grand-dessert that I left for last (hopefully)... 😁

This is something that I've always wanted to ask you but never dare... 🙈🙊

Here is the thing: I need to draw these gray lines with the products (picture below) but as you can notice these lines lie within the margins, and here is the problem.

agl-layout-concept

I haven't figured hop to place these lines yet, but this template is divided into a grid and into each cell there is a group. So, for each group I might decide, for instance, to draw a line on the right side or the bottom side, whether if the layout in use is vertical or horizontally.

Either way, at a certain point, these lines will go over the page margins and this is, of course, undesired. I might create, whether I am able within the group to calculate the full page width and height, a switch case to draw these lines only within the margins area; or I might put a frame that has an area that just fits within the margins, but this depends if within the group I have access to full page size; anyway both approaches looks very tedious.

If I have been able to explain properly the issue, I wonder if you ever taken in consideration to create a tag, or an attribute, that when is invoked to an object it prevents Publisher to draw it outside the margin.

Let say something that it would call WipesMargin and therefore:

tag

<WipesMargin>
  <PlaceObject row="X" column="Y">
    [...]
  </PlaceObject>
</WipesMargin>

or

attribute

<PlaceObject row="X" column="Y" wipesmargin="yes">
  [...]
</PlaceObject>

I do believe that is a powerful feature that will save to many a lot of headaches, especially when it is time to draw patterns.

If something similar already exist because you're already thoughts about that even better! Please let me know!

Meanwhile many 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

No branches or pull requests

1 participant