Page 1 of 1

Space after link in PDF

Posted: Tue Aug 23, 2022 11:56 am
by SathyaOX
When we insert Xref in the source, it creates a space after the link in PDF. How can it be corrected?

Re: Space after link in PDF

Posted: Wed Aug 24, 2022 11:38 am
by andrei_pomacu
Hi,

I could not reproduce the problem on my machine.

Maybe you have an :after element that adds an extra space. Could you send us your CSS Styles?
If you are not able to send them you can make a small example with the problem and then send us the out folder in order to debug it.

Kind regards,
Andrei

Re: Space after link in PDF

Posted: Fri Aug 26, 2022 11:58 am
by SathyaOX
Yes, I will try that. And, I am using oXygen via IXIASOFT.

Re: Space after link in PDF

Posted: Fri Aug 26, 2022 7:48 pm
by SathyaOX
I have a snippet of an example. In the actual XML, there is no space after the xref element and a period. However, the PDF introduces a space.
oxygen space.png
oxygen space.png (3.16 KiB) Viewed 2339 times

Re: Space after link in PDF

Posted: Mon Aug 29, 2022 7:30 am
by Radu
Hi,

If you are publishing via the Ixiasoft server, then you are probably using the XSL-FO based PDF publishing and not our Oxygen specific CSS-based PDF publishing.
Possibly you also have your own PDF customization specific for your company created by Ixiasoft or by someone from your side.
I tested something like this on mi side:

Code: Select all

<p>ABC <xref keyref="care/fig_zph_z5l_r5b"/>.</p>
and I get a PDF looking like this:

Code: Select all

ABC Figure 1: Hello on page 3.
Notice that "on page 3" which appears by default with the XSL-FO based PDF output. In your case it does not appear, probably someone customized the PDF publishing with a plugin or customization folder on the server side and removed that "on page X" part but maybe they left an extra space after the link.

Regards,
Radu

Re: Space after link in PDF

Posted: Mon Aug 29, 2022 1:09 pm
by SathyaOX
Great! I will find out who have access to the file and correct it.
I also noticed that the links provided in Hazard/Caution/Warning do not appear as links in output PDF. This is related to template?

Re: Space after link in PDF

Posted: Mon Aug 29, 2022 1:14 pm
by Radu
Hi,
Do you mean links inside notes like this?

Code: Select all

<note type="warning"><xref keyref="care/fig_zph_z5l_r5b"/></note>
this works for me when publishing a DITA Map to PDF with the XSL-FO based plugin without any customization.
So if it does not work in general for you maybe again could be some kind of PDF customization related problem.

Regards,
Radu

Re: Space after link in PDF

Posted: Mon Aug 29, 2022 2:03 pm
by SathyaOX
Particularly, in this example:
<hazardstatement>
<messagepanel>
<typeofhazard>Equipment Damage:</typeofhazard>
<howtoavoid>

</howtoavoid>
</messagepanel>
<hazardsymbol keyref="xxxxx" placement="inline"/>
</hazardstatement>

Re: Space after link in PDF

Posted: Mon Aug 29, 2022 2:13 pm
by Radu
Hi,

The <hazardsymbol> DITA element specifies a graphic, an image:
https://www.oxygenxml.com/dita/1.3/spec ... ymbol.html

so it must keyref to an image, for example if I have in the DITA map this keydef:

Code: Select all

<keydef href="images/Chrysanthemums.jpg" keys="Chrysanthemums" format="jpg"/>
I can refer to it using "hazardsymbol":

Code: Select all

<hazardsymbol keyref="Chrysanthemums" placement="inline"/>
and at least on my side when the PDF is generated, the image is taken into account.

Regards,
Radu

Re: Space after link in PDF

Posted: Mon Aug 29, 2022 3:42 pm
by SathyaOX
I am sorry, Radu. I think my message was misleading. The image keyref I posted here was just for an example. The concern here was about the links in hazard element not printed as link in output PDF.

Re: Space after link in PDF

Posted: Tue Aug 30, 2022 7:29 am
by Radu
Hi,

Then maybe you can give me a more precise example and I can try it on my side.

Regards,
Radu

Re: Space after link in PDF

Posted: Mon Sep 26, 2022 3:04 pm
by SathyaOX
Hi Radu, sorry for late reply. I tried the default PDF generator config. Links added inside the Hazard statement works here. So the customized config has to be edited.