Space after link in PDF

Having trouble installing Oxygen PDF Chemistry? Got a bug to report? Post it all here.
SathyaOX
Posts: 29
Joined: Wed Oct 26, 2016 8:19 pm
Location: India

Space after link in PDF

Post by SathyaOX »

When we insert Xref in the source, it creates a space after the link in PDF. How can it be corrected?
-Sathya
andrei_pomacu
Posts: 39
Joined: Mon Jul 25, 2022 11:18 am

Re: Space after link in PDF

Post 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
SathyaOX
Posts: 29
Joined: Wed Oct 26, 2016 8:19 pm
Location: India

Re: Space after link in PDF

Post by SathyaOX »

Yes, I will try that. And, I am using oXygen via IXIASOFT.
-Sathya
SathyaOX
Posts: 29
Joined: Wed Oct 26, 2016 8:19 pm
Location: India

Re: Space after link in PDF

Post 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 2219 times
Attachments
image.png
image.png (3.16 KiB) Viewed 2219 times
-Sathya
Radu
Posts: 8992
Joined: Fri Jul 09, 2004 5:18 pm

Re: Space after link in PDF

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
SathyaOX
Posts: 29
Joined: Wed Oct 26, 2016 8:19 pm
Location: India

Re: Space after link in PDF

Post 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?
-Sathya
Radu
Posts: 8992
Joined: Fri Jul 09, 2004 5:18 pm

Re: Space after link in PDF

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
SathyaOX
Posts: 29
Joined: Wed Oct 26, 2016 8:19 pm
Location: India

Re: Space after link in PDF

Post by SathyaOX »

Particularly, in this example:
<hazardstatement>
<messagepanel>
<typeofhazard>Equipment Damage:</typeofhazard>
<howtoavoid>

</howtoavoid>
</messagepanel>
<hazardsymbol keyref="xxxxx" placement="inline"/>
</hazardstatement>
-Sathya
Radu
Posts: 8992
Joined: Fri Jul 09, 2004 5:18 pm

Re: Space after link in PDF

Post 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
Attachments
Screen Shot 2022-08-29 at 14.12.56.png
Screen Shot 2022-08-29 at 14.12.56.png (40.62 KiB) Viewed 2198 times
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
SathyaOX
Posts: 29
Joined: Wed Oct 26, 2016 8:19 pm
Location: India

Re: Space after link in PDF

Post 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.
-Sathya
Radu
Posts: 8992
Joined: Fri Jul 09, 2004 5:18 pm

Re: Space after link in PDF

Post by Radu »

Hi,

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

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
SathyaOX
Posts: 29
Joined: Wed Oct 26, 2016 8:19 pm
Location: India

Re: Space after link in PDF

Post 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.
-Sathya
Post Reply