You could use the amusingly named function
(org-org-export-as-org), which will export to a buffer named
*Org ORG Export* with all the
#+INCLUDE lines expanded. Then you could do your further processing and export from that buffer.
Full documentation for the function:
org-org-export-as-org is an interactive autoloaded compiled Lisp
function in ‘ox-org.el’.
(org-org-export-as-org &optional ASYNC SUBTREEP VISIBLE-ONLY BODY-ONLY
Export current buffer to an Org buffer.
If narrowing is active in the current buffer, only export its
If a region is active, export that region.
A non-nil optional argument ASYNC means the process should happen
asynchronously. The resulting buffer should be accessible
through the ‘org-export-stack’ interface.
When optional argument SUBTREEP is non-nil, export the sub-tree
at point, extracting information from the headline properties
When optional argument VISIBLE-ONLY is non-nil, don’t export
contents of hidden elements.
When optional argument BODY-ONLY is non-nil, strip document
keywords from output.
EXT-PLIST, when provided, is a property list with external
parameters overriding Org default settings, but still inferior to
Export is done in a buffer named "*Org ORG Export*", which will
be displayed when ‘org-export-show-temporary-export-buffer’ is