Print PDF

Moderator: crythias

Locked
dmiszku
Znuny newbie
Posts: 4
Joined: 09 Jul 2014, 16:45
Znuny Version: 3.3.4
Real Name: Daniel

Print PDF

Post by dmiszku »

Hi.

I have trouble with printing table inside the body of the e-mail. On ticket view table is looking good, there is 4 rows and 3 columns.
ticket view.png
In created PDF file table rows and columns was replace by sign of new line.
printed ticket.png
Is there any possible to change table printing in PDF file to print table with columns and rows (not simply text)?
You do not have the required permissions to view the files attached to this post.
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Print PDF

Post by reneeb »

The table in the view is HTML, but the PDF can only use the plain text version of a mail.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
dmiszku
Znuny newbie
Posts: 4
Joined: 09 Jul 2014, 16:45
Znuny Version: 3.3.4
Real Name: Daniel

Re: Print PDF

Post by dmiszku »

How about modyfing code? What function should i use to get oryginal version of emails?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Print PDF

Post by jojo »

sure you can modify the code. But rendering a HTML format to PDF is quite complex. So I assume some week(s) of developers work
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
dmiszku
Znuny newbie
Posts: 4
Joined: 09 Jul 2014, 16:45
Znuny Version: 3.3.4
Real Name: Daniel

Re: Print PDF

Post by dmiszku »

So better way is to not print to pdf but to the other printed view. The same problem is here, tables are removed.
dmiszku
Znuny newbie
Posts: 4
Joined: 09 Jul 2014, 16:45
Znuny Version: 3.3.4
Real Name: Daniel

Re: Print PDF

Post by dmiszku »

Does anyone know how to modify html view of printed ticket to print normal table, not replace with new line?
Locked