@@ -, +, @@ the 1-Page order PDF - The text "Order number must appear on all related correspondence, shipping papers and invoices. Notify us immediately if you are unable to supply item(s)." appears above the order table. - The page numbers at the bottom of the first page are not obscured by - That the order table starts near the top of the second page, and not to split text over multiple lines) and save - Text text above the order table has changed. - The page numbers at the bottom of the first page are not obscrued by - That the order table starts near the top of the second page and not --- Koha/pdfformat/layout1page.pm | 11 +++++++++++ .../intranet-tmpl/prog/pdf/layout1page.odt | Bin 10258 -> 10968 bytes .../intranet-tmpl/prog/pdf/layout1page.pdf | Bin 19437 -> 9291 bytes 3 files changed, 11 insertions(+) --- a/Koha/pdfformat/layout1page.pm +++ a/Koha/pdfformat/layout1page.pm @@ -140,6 +140,7 @@ sub printhead { my $billing_library = Koha::Libraries->find( $basketgroup->{billingplace} ); my $delivery_library = Koha::Libraries->find( $basketgroup->{deliveryplace} ); my $freedeliveryplace = $basketgroup->{freedeliveryplace}; + my $ordersentences = C4::Context->preference("1PageOrderPDFText"); # open 1st page (with the header) my $page = $pdf->openpage(1); @@ -162,6 +163,16 @@ sub printhead { $text->translate(107/mm, ($height-67)/mm); $text->text($libraryname); + # print text defined in 1PageOrderPDFText syspref + $text->font( $pdf->corefont("Times", -encoding => "utf8"), 4/mm ); + my @allLines = split/\n+/, $ordersentences; + my $count = 0; + foreach my $ordersentence ( @allLines ) { + $count+=4; + $text->translate(15/mm, ($height-(105 + $count ))/mm); + $text->text( $ordersentence ); + } + $text->font( $pdf->corefont("Times", -encoding => "utf8"), 4/mm ); $text->translate(107/mm, ($height-71)/mm); $text->text($billing_library->branchname);