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

adding LineSeparator to a Phrase added in the ColumnText clreate an [OBJ] text in the output pdf #7

Closed
alesky78 opened this issue Nov 24, 2020 · 0 comments

Comments

@alesky78
Copy link

as the title described

more simple showing the code and attach the output generated and a unit test that create the issue
`
ColumnText ct = new ColumnText(writed);
Phrase p = null;

	for (int i = 0; i < 50; i++) {
		p = new Phrase();
		p.add(new LineSeparator(0.3f, 100, null, Element.ALIGN_CENTER, -2));
		ct.addText(p);
                ct.addText(Chunk.NEWLINE);
	}

`

in attach i added the output of the pdf in the file name "test_OK_columnTextSeparatorOpenPDF.pdf"
as you can see the output pdf file is create wiht an rectagle wiht OBJ wrote inside
attached also the code that generate this output (the txt file are just java files)

in IText it is working fine
repeated the same test using directly IText wiht this version 5.5.13.2
and added the java class (again .txt) and the output pdf also that test it

ColumnTextSeparatorOpenPDF.txt
test_OK_columnTextSeparatorOpenPDF.pdf
ColumnTextSeparatorIText.txt
test_OK_columnTextSeparatorIText.pdf

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

No branches or pull requests

1 participant