You are viewing limited content. For full access, please sign in.

Question

Question

Forms images are small when saved to Laserfiche

asked on October 14, 2014

I've done some formatting so that my form fits onto a single page when printed from the browser (at the request of the client). However, when I save to laserfiche (as either TIFF or PDF) the image is much smaller than a single page. (See attached example documents).

Is there any way I can cause the form to "print" to a larger size when it saves to Laserfiche?

0 0

Answer

SELECTED ANSWER
replied on October 28, 2014

Actually, I have already solved this problem on my own, so I don't plan on opening a support case anymore. I found a solution that fixed both the browser printing differences between Firefox and IE, and the fact that the images were getting saved into Laserfiche in a small format. It was definitely related to the Javascript I had used to rearrange my form.

The main problem was that I was trying to approach the formatting by creating custom HTML elements on the form in which I would place DIV elements and style them to achieve the desired look. Then I would use javascript to move various Forms input elements into place by targeting those DIV tags in the custom HTML elements. (I got the idea from this answers post, although my code was slightly different).

I believe the printing issues were caused by the fact that I was moving fields around using Javascript, which was creating lots of strange list structures that were affecting printing in IE. When I inspected the HTML, I could see that by targeting input elements by the auto-assigned IDs, I was in fact moving HTML <li> list items around in strange ways.

I don't totally understand why the form was importing into Laserfiche in a small format, but it was probably related to the size/style properties of the custom HTML fields into which I was moving the actual fields. I imagine Forms couldn't properly determine the width given the fact that most of the content was placed inside this nested DIV container structure inside custom HTML fields.

SOLUTION: I have since gotten much better with CSS, and I have been able to directly achieve the styling I want on the Forms fields without having to move them into HTML fields.

2 0
replied on March 4, 2016

What was your solution?

0 0
replied on March 4, 2016

I think the post above is pretty detailed. When I first built the form, I did some strange things with Javascript to move elements around on the page to try to do the formatting. The solution was to learn to use CSS better, which meant I was actually just styling the elements in place rather than moving them (which can leave behind strange list structures on the page if you don't do it right).

This may or may not be the problem you are running into, depending on if you are doing a lot of styling/moving of elements on your form.

0 0
replied on March 4, 2016

I missed the link.  Thanks

0 0
replied on April 23, 2020

Nice work!  I wouldn’t mind seeing your css.  Nice compact look.

0 0

Replies

replied on October 14, 2014

I was just about to ask the same question. It happens whether you store as TIFF or PDF. I found that when I changed the size of my layout from 800px to 1200px, the image in Laserfiche was slightly larger. However, I don't want to have to change the size on the screen to affect the size of the stored image.

0 0
replied on October 17, 2014

This is for Forms 9.2 right? And what's the form width in Forms Settings for the form?

In Forms 9.2, when generate the TIFF or PDF, it will respect the form width settings if the form's width is less than 1000 px, and will generate the form with fixed maximum width like print from the browser if the form's width is larger than 1000px.

Some custom CSS may affect the above logic.

From the attached pdf, it seems the generated form is very small and unclear. Would you like to open an support case and share the exported xml of the process with Support so that we can do further trouble shooting?

0 0
replied on October 20, 2014

Xiuhong,

Thanks for the response. Yes, it's Forms 9.2 and the width on the form is originally 880px, but I have tried as high as 1500px and the results of the saved document are still small images.

At this point, I'm probably going to go with another solution because I can't get consistent printing behavior using CSS between different browsers. For instance, my form prints well from Firefox but is totally messed up in IE.

I would be curious what you could find out if I sent you my form. I have done a lot of CSS and Javascript to rearrange it to fit together densely. I'm sure something I changed there is causing the behavior. How do you want me to open the support case?

0 0
replied on October 26, 2014

Please open an support case and provide the exported process to the support so that we can use your process to reproduce the problem.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.