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

fit2margin/page/spread/bleed – extend only the necessary sides #8

Closed
4 tasks done
pchiorean opened this issue Mar 25, 2020 · 2 comments
Closed
4 tasks done
Assignees
Labels
enhancement New feature or request

Comments

@pchiorean
Copy link
Owner

pchiorean commented Mar 25, 2020

  • empty rectangles and rectangles with content
  • lines and orthogonal lines
  • rotated rectangles, ovals & groups
  • text frames
@pchiorean pchiorean self-assigned this Mar 25, 2020
@pchiorean pchiorean added the enhancement New feature or request label Mar 25, 2020
@pchiorean
Copy link
Owner Author

pchiorean commented Apr 11, 2020

var spreadItem = mySpreadItems[i];
var myDupItem = spreadItem.duplicate();
var rect = myPages[j].page.rectangles.add(myLayer, {
    geometricBounds: myPages[j].bounds,
    fillColor: "None",
    strokeColor: "None"
});
rect.sendToBack();
try {
    rect.intersectPath(myDupItem);
} catch (e) {
    rect.remove();
    myDupItem.remove();
}
spreadItem.remove();

@pchiorean
Copy link
Owner Author

Closed by 74c3183.

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

No branches or pull requests

1 participant