Image attachment in the generated pdf

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Image attachment in the generated pdf

Anjan
Hi, I built a form using Orbeon Form Builder.  In the form there is a field to attach image.  I am able to attach the image successfully while submitting the form, but the generated pdf doesn't show the complete image as the size of the image is bigger.  How can we ensure that the generated pdf shows the complete image either with full size(in which case the pdf will have horizontal scroll bar) or with reduced size.

Regards,
Anjan
Reply | Threaded
Open this post in threaded view
|

Re: Image attachment in the generated pdf

Erik Bruchez
Administrator
Full size won't work as PDFs, as far as I know, don't have scrollbars.

So you would need to reduce the size of the image in the PDF.

PDF is produced through a library which uses CSS for the layout. Here
is the CSS we have:

.fr-grid .xforms-mediatype-image { width: 100%; overflow: auto; display: block }
.fr-grid .xforms-mediatype-image { *padding-bottom: 17px; *overflow-y:
hidden }/* IE HACK */
.fr-grid .xforms-mediatype-image img { display: block }

Try overriding that CSS. If you want this to only apply to the PDF
output, put the CSS within a block like:

@media print {
  …
}

-Erik

On Mon, Sep 27, 2010 at 4:18 AM, Anjan <[hidden email]> wrote:

>
> Hi, I built a form using Orbeon Form Builder.  In the form there is a field
> to attach image.  I am able to attach the image successfully while
> submitting the form, but the generated pdf doesn't show the complete image
> as the size of the image is bigger.  How can we ensure that the generated
> pdf shows the complete image either with full size(in which case the pdf
> will have horizontal scroll bar) or with reduced size.
>
> Regards,
> Anjan
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Image-attachment-in-the-generated-pdf-tp2715241p2715241.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Image attachment in the generated pdf

Anjan
Thanks Eric for your inputs.