You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Arun Patidar (Jira)" <ji...@apache.org> on 2026/09/16 07:21:00 UTC

[jira] [Updated] (OFBIZ-13598) Open combined PDF in browser from Find Orders Print (PDF) action when no printer is selected

     [ https://issues.apache.org/jira/browse/OFBIZ-13598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arun Patidar updated OFBIZ-13598:
---------------------------------
    Description: 
*Current behavior*

On Find Orders (ordermgr), the mass actions for PDF output are "Print (PDF)", which
sends one print job per selected order to a printer, and "Create File", which writes
one PDF per selected order on the server under \{{runtime/output/}}. There is no way
to view the PDFs of the selected orders in the browser.

*Improvement*

Add a new "View PDF" action to the Find Orders mass action dropdown that opens one
combined PDF containing all selected orders in a new browser tab. The existing
"Print (PDF)" and "Create File" actions remain unchanged.

*Proposed fix*

# Add a request-map \{{orders.pdf}} in the ordermgr controller, backed by a Java event
  that loops the selected orderIdList, renders the existing
  \{{OrderPrintScreens.xml#OrderPDF}} screen per order through the existing
  ScreenRenderer + FOP pipeline, merges the results with PDFBox \{{PDFMergerUtility}}
  (already an OFBiz dependency), and streams the combined PDF inline as
  \{{application/pdf}}.
# Add a "View PDF" option to the mass action dropdown in \{{FindOrders.ftl}}, opening
  the PDF in a new browser tab.
# Add a new \{{OrderViewOrdersPdf}} label.

*Notes*

- Depends on OFBIZ-13505, which fixes the rendering defects in the underlying
  screen/services.
- Existing printing and file creation behavior is unchanged.

  was:
*Current behavior*

On Find Orders (ordermgr), the "Print (PDF)" mass action renders one PDF per selected
order and sends each as a print job to the selected printer. When no printer is
selected, the jobs go silently to the server's default printer and nothing is shown
in the browser.

*Improvement*

When no printer is selected, open one combined PDF containing all selected orders in
a new browser tab instead of printing. When a printer is selected, keep the current
behavior and spool the jobs to that printer.

*Proposed fix*

# Add a request-map \{{orders.pdf}} in the ordermgr controller, backed by a Java event
  that loops the selected orderIdList, renders the existing
  \{{OrderPrintScreens.xml#OrderPDF}} screen per order through the existing
  ScreenRenderer + FOP pipeline, merges the results with PDFBox
  \{{PDFMergerUtility}} (already an OFBiz dependency), and streams the combined PDF
  inline as \{{application/pdf}}.
# In \{{FindOrders.ftl}}, adjust runAction() so that when the selected action is
  massPrintOrders and no printer is selected, the form submits to \{{orders.pdf}} with
  target _blank; otherwise it submits as today.

*Notes*

- Depends on OFBIZ-13505, which fixes the rendering defects currently breaking the
  mass PDF actions.
- Existing printing and Create File behavior is unchanged.


> Open combined PDF in browser from Find Orders Print (PDF) action when no printer is selected
> --------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-13598
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-13598
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: order
>    Affects Versions: Upcoming Branch
>            Reporter: Arun Patidar
>            Assignee: Arun Patidar
>            Priority: Minor
>             Fix For: Upcoming Branch
>
>
> *Current behavior*
> On Find Orders (ordermgr), the mass actions for PDF output are "Print (PDF)", which
> sends one print job per selected order to a printer, and "Create File", which writes
> one PDF per selected order on the server under \{{runtime/output/}}. There is no way
> to view the PDFs of the selected orders in the browser.
> *Improvement*
> Add a new "View PDF" action to the Find Orders mass action dropdown that opens one
> combined PDF containing all selected orders in a new browser tab. The existing
> "Print (PDF)" and "Create File" actions remain unchanged.
> *Proposed fix*
> # Add a request-map \{{orders.pdf}} in the ordermgr controller, backed by a Java event
>   that loops the selected orderIdList, renders the existing
>   \{{OrderPrintScreens.xml#OrderPDF}} screen per order through the existing
>   ScreenRenderer + FOP pipeline, merges the results with PDFBox \{{PDFMergerUtility}}
>   (already an OFBiz dependency), and streams the combined PDF inline as
>   \{{application/pdf}}.
> # Add a "View PDF" option to the mass action dropdown in \{{FindOrders.ftl}}, opening
>   the PDF in a new browser tab.
> # Add a new \{{OrderViewOrdersPdf}} label.
> *Notes*
> - Depends on OFBIZ-13505, which fixes the rendering defects in the underlying
>   screen/services.
> - Existing printing and file creation behavior is unchanged.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)