Skip to content

Combining shape-based front pages with block-based content results in layout misalignment #23

@EmilPoulsen

Description

@EmilPoulsen

@interopxyz
I love the flexibility of combining block-based and shape-based content into a single PDF document. I’ve encountered a problem that I’d like to get your thoughts on.

📚 Vocabulary

Here’s how I define the terms (let me know if these differ from your understanding):

  • Block-based: Content is added sequentially without specifying its exact position on the page, allowing for automatic pagination.
  • Shape-based: Content is positioned with precise control over layout on the page.

🎯 What I’m trying to achieve

I want to create a document structured as follows:

  1. Front page: Combines geometry and text, using shape-based layout for precise control.
  2. Intro page: Follows the front page, also combining geometry and text, with a shape-based layout.
  3. Main content: Contains drawings and text, formatted as block-based to allow for variable length.

To simulate this issue, I’ve created a GH file using PDF Plus, which combines elements from the following example files:

  • PdfPlus-Blk-06-Drawing
  • PdfPlus-Shp-01-GeometryTypes
  • PdfPlus-Blk-01-BasicText_A

❌ Problem

While I can successfully create the front and intro pages, the issue arises when I combine them with block-based drawings: the drawings appear on the first page instead of following the intro page.
Incorrect Results
Full file:
PdfPlus-BlockbasedDrawings-And-FrontPage-Error.pdf

✅ Expected Outcome

When I replace the block-based drawings with block-based text, the layout works as expected: the block-based content appears on pages following the front and intro pages.
Expected Results
Full PDF:
PdfPlus-BlockbasedDrawings-And-FrontPage-Expected.pdf

🗂️ Example File

I’ve attached an example file that demonstrates both the issue and the expected behavior.
Example Components
Grasshopper file:
PdfPlus-BlockbasedDrawings-And-FrontPage.zip


Any ideas on where I should start looking in the source code to address this?
I’d be happy to contribute if you can point me in the right direction!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions