Re: [docbook-apps] Embedding DocBook → PDF transfo rmation in a Java web app
Benjamin DE DARDEL <[email protected]> Sun, 30 Jul 2023 07:27:47 -1000
| Newsgroups | gmane.text.docbook.apps |
|---|---|
| Message-ID | <CACeQubeuxiJ2sUmZ1q6=4dhWDpE9OswmrwXBQhTQguqgDOwp7w@mail.gmail.com> |
--0000000000009bdbab0601b7a2b5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Yes it works via files : - docbook xls stylesheets are embedded in the resources jar - they are copied in $HOME/.ant4docbook directory to be used by an internal or external processor (that generates files). I understand that you prefer an 'in memory' approach for your web app. Le sam. 29 juil. 2023 =C3=A0 19:47, Paul Hoadley <[email protected]> a = =C3=A9crit : > On 29 Jul 2023, at 6:28 pm, Benjamin DE DARDEL < > [email protected]> wrote: > > This is an old problem that I looked into some time ago. > I use my ant4docbook project daily to generate pdfs, from docbook, markdo= wn and docbook xsl1.xx. > Surely there are some interesting things to take in there. > > > Thanks for the suggestion. I've had a browse over the source. It seems > like any reference to the embedded DocBook XSL is via Files, which is > something I want to avoid. Ideally, I'd like to get this to run "out of t= he > JAR". Am I missing some code in ant4docbook that would demonstrate that > approach? > > The next step is to use xsltng + an html to pdf converter (chromium cef p= df?). > > > For the moment, at least, I'd like to see if I can get to PDF via FO, > which means the v1 or v2 stylesheets. > > > -- > Paul Hoadley > https://logicsquad.net/ > https://www.linkedin.com/company/logic-squad/ > > --0000000000009bdbab0601b7a2b5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Yes it works via files : <br>- docbook xls stylesheets are= embedded in the resources jar<br>- they are copied in $HOME/.ant4docbook d= irectory to be used by an internal or external processor (that generates fi= les).<br>I understand that you prefer an 'in memory' approach for y= our web app.</div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"= gmail_attr">Le=C2=A0sam. 29 juil. 2023 =C3=A0=C2=A019:47, Paul Hoadley <= <a href=3D"mailto:[email protected]">[email protected]</a>> a =C3= =A9crit=C2=A0:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0= px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><= div style=3D"overflow-wrap: break-word;">On 29 Jul 2023, at 6:28 pm, Benjam= in DE DARDEL <<a href=3D"mailto:[email protected]" target=3D"_= blank">[email protected]</a>> wrote:<div><br></div><div><div><= blockquote type=3D"cite"><div><div dir=3D"auto"><div><div dir=3D"auto"><pre= dir=3D"ltr" style=3D"max-height:999999px;line-height:28px;border:medium no= ne;padding:10px 0.14em 10px 0px;margin-top:0px;margin-bottom:0px;width:328p= x"><span style=3D"max-height:999999px">This is an old problem that I looked= into some time ago. I use my ant4docbook project daily to generate pdfs, from docbook, markdown= and docbook xsl1.xx. Surely there are some interesting things to take in there. </span></pre></div></div></div></div></blockquote><div><br></div><div>Thank= s for the suggestion. I've had a browse over the source. It seems like = any reference to the embedded DocBook XSL is via Files, which is something = I want to avoid. Ideally, I'd like to get this to run "out of the = JAR". Am I missing some code in=C2=A0ant4docbook that would demonstrat= e that approach?</div><div><br></div><blockquote type=3D"cite"><div><div di= r=3D"auto"><div><div dir=3D"auto"><pre dir=3D"ltr" style=3D"max-height:9999= 99px;line-height:28px;border:medium none;padding:10px 0.14em 10px 0px;margi= n-top:0px;margin-bottom:0px;width:328px"><span style=3D"max-height:999999px= ">The next step is to use xsltng + an html to pdf converter (chromium cef p= df?).</span></pre></div></div></div></div></blockquote><div><br></div><div>= For the moment, at least, I'd like to see if I can get to PDF via FO, w= hich means the v1 or v2 stylesheets.</div><div><br></div><div><br></div></d= iv><div> <div style=3D"color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-= indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div st= yle=3D"color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:= 0px;text-transform:none;white-space:normal;word-spacing:0px"><span style=3D= "border-collapse:separate;font-variant-ligatures:normal;font-variant-numeri= c:normal;font-variant-alternates:normal;font-variant-east-asian:normal;line= -height:normal;border-spacing:0px"><div style=3D"overflow-wrap: break-word;= ">--=C2=A0<br>Paul Hoadley<br><a href=3D"https://logicsquad.net/" target=3D= "_blank">https://logicsquad.net/</a><br><a href=3D"https://www.linkedin.com= /company/logic-squad/" target=3D"_blank">https://www.linkedin.com/company/l= ogic-squad/</a></div><div style=3D"overflow-wrap: break-word;"><br></div></= span></div></div></div></div></div></blockquote></div> --0000000000009bdbab0601b7a2b5--