• Resolved Domenik

    (@onyxdevelopment)


    Can you tell me how to split the PDF?
    I only need the return label pdf.

    I automatically send the pdf to our customers by e-mail because they send their goods to us and therefore the normal label is not required

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Shadi Manna

    (@shadim)

    At the moment both PDF’s have to be created, so you will have to simply tell them to ignore the normal label and use the return label.

    Thread Starter Domenik

    (@onyxdevelopment)

    yes, i automatically send the customer the pdf with the labels. However, I only need the second page of the PDF for the return label

    Plugin Author Shadi Manna

    (@shadim)

    You would have to use a PDF library to do that, the plugin creates both labels.

    Thread Starter Domenik

    (@onyxdevelopment)

    the plugin creates a pdf with both labels as content. I would like to see the pdf created by the dhl plugin in two pdfs so that I can only send the return label

    Thread Starter Domenik

    (@onyxdevelopment)

     $attachments = $upload_dir['basedir'] . '/woocommerce_dhl_label/dhl-label-'.$order_id.'.pdf';
        wp_mail( $to, $subject, $message, $headers, $attachments );

    that works great so far. However, I only need the second page of the pdf with the returned content

    Plugin Author Shadi Manna

    (@shadim)

    Unfortunately, the return label is embedded within the response of the normal label so it cannot be separated, unless you use an external library to do so.

    Thread Starter Domenik

    (@onyxdevelopment)

    Where can I find the creation of the PDF in the plugin? There you should be able to specify what should be generated

    Plugin Author Shadi Manna

    (@shadim)

    The label is created on the DHL end not on WooCommerce, and then both are returned together.

    Thread Starter Domenik

    (@onyxdevelopment)

    I was able to solve the problem with a self-written plugin.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Split the PDF’ is closed to new replies.