1) Create view: PDF Unformatted
2) Insert Global: custom text field, then Include view (a non-empty PDF Table), then another Global: custom text field.
3) Position 2nd and 3rd field relative to: "last writing position" with Y positive.

The 3rd field will overwrite the content of the included PDF Table, because the Table doesn't have assigned the correct dimensions.

This is the same issue as:
#1611884: Include Views cannot be positioned
#1423440: Include View doesn't seem to be taking up space
but has not been resolved for 7.x

Has it been resolved in 7.x-2.x-dev? Is it worth trying on a production site? Is there any other workaround?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

stevieb’s picture

just to confirm using the latest dev I'm having this issue

the order total is impossible to place below multiple line items ... instead it appears over the line items
1 line item works multiple not so much

the culprit is the include view line items pdf.

vegansupreme’s picture

I can replicate this problem. But when I include the table view, it's duplicated 3 times! Did this happen to anyone else? If not did you do anything to avoid this duplication?
I'm also trying to fix this other problem
#2072889: Include View Duplicates Content
Here are two possible workarounds:

  1. If you know the height of your table view, you could plug that in to the field height value, under row style options, of the enclosing view.
  2. Don't include a PDF table view at all. Instead, make a standard view page with a table format, (hide contextual links for that view). Then include that non-PDF view instead. A non-PDF view does take up space.

I hope these workarounds can help. A proper fix is not easy!

killua99’s picture

Status: Active » Postponed (maintainer needs more info)

Status?

stevieb’s picture

using the "PDF Table" in "Commerce Pdf Invoice Line Items" I had an issue placing the order total below the table.

what I did was add the field "(Order) Commerce Order: Order total" to the "Commerce Pdf Invoice Line Items" and then in the settings hide it with a width of 1

then on the main PDF (the one that calls the "PDF Table")

then I could position the Total on the Invoice to "Position relative to Field: Self"

views attached ... to avoid confusion

killua99’s picture

Assigned: Unassigned » killua99
Status: Postponed (maintainer needs more info) » Needs work

I'll try to replicated it.

Just to know, that's with the last version?

I'll try with the dev branch. Should I test it with 1.3 version?

vegansupreme’s picture

For this issue, there's probably nothing that has changed between 1.3, 1.4, or dev.

stevieb’s picture

I'm using the 7.14 dev

killua99’s picture

Status: Needs work » Closed (outdated)