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?
Comment | File | Size | Author |
---|---|---|---|
#4 | commerce_invoice_view.txt | 30.9 KB | stevieb |
#4 | commerce_lineitems_view.txt | 16.07 KB | stevieb |
Comments
Comment #1
stevieb CreditAttribution: stevieb commentedjust 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.
Comment #2
vegansupreme CreditAttribution: vegansupreme commentedI 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:
I hope these workarounds can help. A proper fix is not easy!
Comment #3
killua99 CreditAttribution: killua99 commentedStatus?
Comment #4
stevieb CreditAttribution: stevieb commentedusing 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
Comment #5
killua99 CreditAttribution: killua99 commentedI'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?
Comment #6
vegansupreme CreditAttribution: vegansupreme commentedFor this issue, there's probably nothing that has changed between 1.3, 1.4, or dev.
Comment #7
stevieb CreditAttribution: stevieb commentedI'm using the 7.14 dev
Comment #8
killua99 CreditAttribution: killua99 commented