Re: Generate PDF file.

by Puybaret » Mon Apr 15, 2024 11:23 am

First thing, if you want some help, you have to help programmers understanding your code too. Naming every variable varsomething is really troublesome and in the long term, it won't help your code maintenance. Some comments could be welcomed too, at least to show where you made some modifications.

Then, in your code:

Code: Select all

if (home.wallType.contains(var18.getModeCreationName())) {
[font=courier new]wallType[/font] and [font=courier new]getModeCreationName[/font] are new field and method you introduced in your derived version. Are you sure that this condition is fulfilled? Did you use a debugger to check how it works?
Did you try to print, instead of printing to PDF? Then, try to print through a PDF printer driver?