revprintfield and RIGHT tabalign?
Richard Gaskin
ambassador at fourthworld.com
Fri Feb 14 12:13:53 EST 2020
Klaus wrote:
>> Am 14.02.2020 um 17:53 schrieb Richard Gaskin:
>> Do you have another image showing the PDF output where any portions
>> of any column are right-aligned while other columns are left-aligned?
>
> oh my, how embarrassing! :-/
> Sorry, obviously I did look too long at my picture, you are of course
> completely right, all columns are left aligned.
No worries. With me it's useful to double-check. As you know from the
forums, I often get busy and reply after reading just the last few
posts, which puts myself at a disadvantage of critical info was included
earlier in the thread. I've done that more than a few times. :)
>> If you do that would seem a deeper issue, perhaps in the engine,
>> since nothing in revPintingLibrary currently supports differing
>> column alignments.
>> Indeed, based on what we can read in the code, adding the one line to
>> set the tabAlign resolves the issue.
>
> No, after applying your fix, the right aligned collumn is completely
> gone/not printed!?
>
>> In your case, bringing the last tabstop in a bit, or perhaps adding a
>> trailing tabstop after the ones you have in place, should account for
>> the additional margins present in the print stack to have that last
>> column visible.
>
> I added a dummy tabstop after my right aligned third column, but that
> did not change anything.
>
> I have a workaround with "print this cd", so lets wait and see what
> the mothership says...
Shouldn't be needed in this case. The revPrintField command is just
script, and we know that printing the card directly does what we want.
Now we just have to identify the differences between the field on your
card and the field in the offscript printing stack revPrintField creates
and we can put a fix in your hands right now, and leave the engine team
focused on the engine.
One difference I see is that the margins of the printing field in the
PDF appear larger, leaving less room for content.
What happens if you set those margins to 0?
If that doesn't solve it feel free to email me the stack you want to
print and I'll see what scripting needs to be added to
revPrintingLibrary to handle it well.
--
Richard Gaskin
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web
____________________________________________________________________
Ambassador at FourthWorld.com http://www.FourthWorld.com
More information about the use-livecode
mailing list