[xep-support] Re: How often does XEP.BAT use my graphic-URL?

From: Vladyslav Sivyakov <vsivyakov_at_ADDRESS_REMOVED>
Date: Fri Jul 31 2020 - 12:01:40 PDT

Hello Fritz,

Throughout the formatting process, XEP retrieves various information
about the external resources, like dimensions.

Caching the entire content is problematic because in large documents,
the total size of external resources would make the Java environment on
a formatting machine quickly run out of memory.

There is a standard solution for that -- XML Catalogs. You make a local
copy of frequently-used resources and configure a Catalog Resolver do
the job. Simple ones simply return local files (file:) instead of those
located on remote (http:) computers, but nothing prevents from
implementing your own sophisticated one that has some timed-cache
strategy and periodically refreshed entities.

A typical usage is when you're developing DocBook documents, and each
rendering process takes an http hit to docbook.sourceforge.net. Of
course, this makes rendering slow, and you may want to improve it.
Here's more details:

http://www.renderx.com/reference.html#URI_Resolution

http://www.renderx.com/reference.html#using_catalogs_for_docbook

https://www.oasis-open.org/committees/entity/spec-2001-08-06.html

Alternatively, a caching proxy could be a solution, but it may be an
overhead and depend on your needs.

Best regards,
Vladyslav Y. Sivyakov, RenderX.

On 31.07.2020 09:44, Kirch Fritz wrote:
>
> Hi RenderX-Support Team, hi Kevin
>
> in my FO-file (see below and in appendix) you can find excatly one
> call of <fo:external-graphic> with a url to my graphic file.
>
> When I use XEP.BAT to render FO into XEPOUT intermediate format, my
> server protocoll told me, that there are 3 calls fetching the
> pdf-graphic from my server.
>
> I am wondering, why there are 3 calls?
>
> With the processing instruction xep-out-embed-images:
>
>     FO -> XEP calls my media server  3 times    and    XEP -> PDF
> calls my media server 0 times
>
> Without the processing instruction xep-out-embed-images:
>
>     FO -> XEP calls my media server  2 times    and    XEP -> PDF
> calls my media server 4 times
>
> How can I minimize the number of calls to my media server?
>
> Fritz Kirch
>
> IT2media GmbH & Co KG
>
> Nuremberg, Germany
>

_______________________________________________
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
ww.renderx.com/terms-of-service.html
Received on Fri Jul 31 12:01:28 2020

This archive was generated by hypermail 2.1.8 : Fri Jul 31 2020 - 12:01:33 PDT