The "defined" sizes in PDF.pm are based upon this code:
    # get default pagesize
    my $DefaultWidth  = 595;    # DIN A4
    my $DefaultHeight = 842;    # DIN A4
    if ( $Self->{ConfigObject}->Get('PDF::PageSize') eq 'letter' ) {
        $DefaultWidth  = 612;
        $DefaultHeight = 792;
    }

These numbers are based upon 72dpi or 2.83 dots per mm.
Any PDF object will need to have specified Width and Height in the PageNew
or PageBlankNew API, or else the above is used.
http://dev.otrs.org/3.1/Kernel/System/PDF.html


On Thu, Sep 6, 2012 at 3:18 AM, Michiel Beijen <michiel.bei...@gmail.com>wrote:

> I think most sizes in PDF.pm are already relative. If you would have
> patches to improve, they would be welcome.
>
> BTW: I guess your use case is to be able to print a statistic with all
> attributes on one sheet?
> --
> Mike
>
> On Thu, Sep 6, 2012 at 2:36 AM, Planeacion, Desarollo Informatico
> <d...@pgje.michoacan.gob.mx> wrote:
> > Hi Mike,
> >
> > PDF::PageSize  only receive:
> > * Letter
> > * A4
> > * Legal (perhaps).
> >
> > I wanna know how customize PDF sheet report, "the clear way", but i try
> this
> > change PDF.pm, when mediabox(w,h), is called. This way is very dirty and
> > causes that the pdf generation is acting weird u_u.
> >
> > Regards.
> >
> >
> > A las Miércoles, 05/09/2012 en 13:43 Michiel Beijen escribió:
> >
> > Hi,
> >
> > Only on a system-wide basis; see the PDF::PageSize setting in SysConfig:
> > http://doc.otrs.org/3.1/en/html/config.html#Framework:Core::PDF
> > --
> > Mike
> >
> > On Wed, Sep 5, 2012 at 8:36 PM, Soporte Informatica PGJE
> > <d...@pgje.michoacan.gob.mx> wrote:
> >> Hello,
> >>
> >>
> >>
> >> Is posible customize the sheet size in PDF format?, for example A5, A0,
> >> etc
> >>
> >>
> >>
> >> Regards.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> OTRS mailing list: otrs - Webpage: http://otrs.org/
> >> Archive: http://lists.otrs.org/pipermail/otrs
> >> To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
> > ---------------------------------------------------------------------
> > OTRS mailing list: otrs - Webpage: http://otrs.org/
> > Archive: http://lists.otrs.org/pipermail/otrs
> > To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
> >
> >
> > ---------------------------------------------------------------------
> > OTRS mailing list: otrs - Webpage: http://otrs.org/
> > Archive: http://lists.otrs.org/pipermail/otrs
> > To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
> ---------------------------------------------------------------------
> OTRS mailing list: otrs - Webpage: http://otrs.org/
> Archive: http://lists.otrs.org/pipermail/otrs
> To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
>
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs

Reply via email to