Announcement

Collapse
No announcement yet.

PDF Subselect - Automatic new page and Horizontal Line Repeat

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • PDF Subselect - Automatic new page and Horizontal Line Repeat

    Hi,

    1) I get strange result when I want to make page break at subselect. I attached generated PDF. I want to make page greak and repeat "txt..." fields.

    2) How to repeat "Line" in subselect?

    Thanks!

    P.S.
    Source Code of pdf:

    // set document information
    $pdf->SetCreator(PDF_CREATOR);
    $pdf->SetAuthor('Mitja Znidaric');
    $pdf->SetTitle('Kontrolni list - VPP in VPD');
    $pdf->SetSubject('VPP in VPD');
    $pdf->SetKeywords('VPP, VPD, kontrolni, list');


    //horizontalne linije
    $pdf->Line(10,9,200,9);
    $pdf->Line(10,15,200,15);
    $pdf->Line(10,25,200,25);
    $pdf->Line(10,50,200,50);
    $pdf->Line(10,63,200,63);
    $pdf->Line(10,83,200,83);


    /*------------------ Page 1 -----------------*/
    sc_pdf_print($cell_13);
    sc_pdf_print($cell_idDelavec);
    sc_pdf_print($cell_16);
    sc_pdf_print($cell_Datum_kontrole);
    sc_pdf_print($cell_14);
    sc_pdf_print($cell_stranka_id);
    sc_pdf_print($cell_15);
    sc_pdf_print($cell_idSTRANKE_Objekti);
    sc_pdf_print($cell_17);
    sc_pdf_print_mult($cell_Opombe, 3.5277777777778);
    sc_pdf_set_y(64);
    foreach ({Stortive} as $NM_ind => $Dados)
    {
    sc_pdf_print_sub_sel_mult($cell_Stortive_Naziv_per iodicne_storitve[$NM_ind], 3.5277777777778);
    sc_pdf_print_sub_sel($cell_Stortive_Datum_zadnje_i zvedbe[$NM_ind]);
    sc_pdf_print_sub_sel($cell_Stortive_Datum_naslednj e_kontrole[$NM_ind]);
    sc_pdf_print_sub_sel($cell_Stortive_Periodika_v_me secih[$NM_ind]);
    $pdf->Line(10,63,200,63); //WANT TO REPEAT
    sc_pdf_set_auto_page_break('auto','25');
    sc_pdf_sub_sel_end(20);
    }
    sc_pdf_print_mult($cell_txtAktivnost, 3.5277777777778);
    sc_pdf_print_mult($cell_txtObdobje, 3.5277777777778);
    sc_pdf_print_mult($cell_txtZadnjiDatum, 3.5277777777778);
    sc_pdf_print_mult($cell_txtPogodba, 3.5277777777778);
    sc_pdf_print_mult($cell_txtPredvidenDatum, 3.5277777777778);
    sc_pdf_print_mult($cell_txtOpombe, 3.5277777777778);
    /*-------------------------------------------*/
    Attached Files
Working...
X