Project

General

Profile

Defect #1206

Printing in A4

Added by Armin Schöttner about 7 years ago. Updated about 5 years ago.

Status:
Parked
Priority:
Normal
Category:
velocity
Target version:
-
Start date:
03/20/2017
Due date:
% Done:

0%

Estimated time:
Browser (if web client):

Description

Hi Patrick,

with some changes in our work, I wanted to use Velocity for printing now.

I totally love, what I have discovered so far.

But there ist a (for me) big bug. I want to print my reports in A4 portrait (most of them). This is simply not possible.
The preview looks perfect, but what is printed, always has a large margin (i think, its just a small format printed on A4).

I have checked it on Servoy 6.1.6 / 8.1.2, Java 7 / 8 (latest), and Windows 7 / 10 ... always the same thing.

Let's make it short: I have checked older versions of the plugin, too.
Everything is fine up to version 3.5.26, no margin, everything printed perfectly ... with version 3.5.27 and up the problem begins.

As mentioned before, it looks like the report is zoomed to a smaller format, maybe letter and then printed 1:1 on A4. Savinig the report as PDF is like a zoomed in version of the "small" format.
I have added 2 versions of my report ... it is in an early state, so there is some errors on it, but you can see, what problem i have.

I hope, you can help me here.

Regards

Silvio


Files

V3_5_26.pdf (67.9 KB) V3_5_26.pdf Armin Schöttner, 03/20/2017 08:00 PM
V3_5_27.pdf (67.8 KB) V3_5_27.pdf Armin Schöttner, 03/20/2017 08:00 PM
test.html (1.04 KB) test.html the plain template Armin Schöttner, 03/21/2017 09:49 AM
test_rendered.html (1.32 KB) test_rendered.html the result of rendering the template and saving the output Armin Schöttner, 03/21/2017 09:49 AM

History

#1

Updated by Patrick Talbot about 7 years ago

  • Assignee set to Armin Schöttner
  • Priority changed from Urgent to Normal

Please don't set the priority to a ticket to urgent unless you are prepared to sponsor the fix.
Please attach your template as well so that I can have a look at the CSS you use to define the page properties.

#2

Updated by Patrick Talbot about 7 years ago

  • Status changed from New to Feedback
#3

Updated by Armin Schöttner about 7 years ago

sorry, I didn't know that about priority.

I have checked the rendered template in my browser, it works fine there.
Also the preview is perfect. The problem occures only, when it comes to printing / saving.
The pdf contains a zoomed in version and printing produces a small version with large margin.

Both, report and preview are set to plugins.VelocityReport.PRINTSIZE.ISO_A4.

The CSS is very limited and in the head of the template, as I am in an early state of developing and tried to figure out, if it's my file or the plugin.

I have checked the issue now (in developer) with:

windows 7, windows 10, macOS
Servoy 6.1.6, Servoy 8.1.2
plugin-Versions 2, 3.5, 3.5.26, 3.5.27 and some newer, until the newest one.

it works in version 3.5.26 and older on all OS and both servoy versions

#4

Updated by Patrick Talbot about 5 years ago

  • Status changed from Feedback to Parked

Also available in: Atom PDF