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

Use Strict Comparison on Row and Column Numbers #11

Merged
merged 1 commit into from
Feb 1, 2025

Conversation

j4nr6n
Copy link
Contributor

@j4nr6n j4nr6n commented Jan 25, 2025

With the following code, I'd expect all three labels to be on the same row. Row 0.

$labelSheet = new LabelSheet('Avery5160');

$labelSheet->addTextLabel(['Test'], 'C', 0, 0);
$labelSheet->addTextLabel(['Test'], 'C', 0, 1);
$labelSheet->addTextLabel(['Test'], 'C', 0, 2);

$pdf = new PDF();
$pdf->SetFont('Helvetica', '', 11);
  
$labelSheet->writeTo($pdf, true);

\file_put_contents('output.pdf', $pdf->Output('S', 'output.pdf'));

What I actually get:
output

@amattu2 amattu2 self-requested a review February 1, 2025 14:36
Copy link
Owner

@amattu2 amattu2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for finding and addressing this bug!

@amattu2 amattu2 merged commit 0479618 into amattu2:master Feb 1, 2025
@j4nr6n j4nr6n deleted the is_null branch February 1, 2025 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants