Search found 403 matches

by Dan
Mon Nov 26, 2018 2:44 pm
Forum: Feature Request
Topic: CSS to PDF Transform -- Prompt for File
Replies: 6
Views: 2067

Re: CSS to PDF Transform -- Prompt for File

Thank you for the details!
We will check if it is possible to change the name of the output file.

Many regards,
Dan
by Dan
Mon Nov 26, 2018 2:43 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: DITA map PDF – based on HTML5 &CSS transformation with xslt extension points
Replies: 8
Views: 1347

Re: DITA map PDF – based on HTML5 &CSS transformation with xslt extension points

The extension should be bound to the last transformation, the merge2html5. it is currenlty bound to merged2merged in your publishing template, so please correct to: <xslt> <extension id="com.oxygenxml.pdf.css.xsl.merged2html5" file="xslt/document-type.xsl"/> </xslt> In this way the XSLT template wil...
by Dan
Fri Nov 23, 2018 1:10 pm
Forum: Feature Request
Topic: CSS to PDF Transform -- Prompt for File
Replies: 6
Views: 2067

Re: CSS to PDF Transform -- Prompt for File

If you need to transform multiple documents (the JIRA output for each product version) to PDF, I recommend creating a script that invokes the DITA-OT multiple times. If you are using an oxygen publishing template to store the customization, you can use the pdf.publishing.template parameter to point ...
by Dan
Fri Nov 16, 2018 12:09 pm
Forum: Common Problems
Topic: Intermittent Lock after Transform to PDF
Replies: 17
Views: 3301

Re: Intermittent Lock after Transform to PDF

Maybe you take a look at the messages from the transformation console (Options/Preferences/DITA/Logging/Console). It might show up that the DITA-OT is processing more resources than expected.

Regards,
Dan
by Dan
Mon Nov 12, 2018 11:12 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: CSS-Based PDF - Creating solid color headers
Replies: 1
Views: 611

Re: CSS-Based PDF - Creating solid color headers

Hello, If you set the margins of a page size to zero, the page margin boxes from that side will not be visible. In general, if you want to style the header of the page, we recommend using a background image set on the entire page, as explained here: https://www.oxygenxml.com/doc/versions/20.1/ug-che...
by Dan
Thu Oct 25, 2018 9:06 am
Forum: XSLT and FOP
Topic: Link between SVG image and text in an XML document
Replies: 6
Views: 1478

Re: Link between SVG image and text in an XML document

In theory this should work: .... <!-- Declare the ID as named destination --> <fox:destination internal-destination="circle"/> .... <fo:block color="green"> <fo:basic-link external-destination="#circle"> Go to circle. </fo:basic-link> </fo:block> ... In the SVG you should have: <circle id="circle" ....
by Dan
Wed Oct 24, 2018 5:32 pm
Forum: XSLT and FOP
Topic: Link between SVG image and text in an XML document
Replies: 6
Views: 1478

Re: Link between SVG image and text in an XML document

I have not tested it, but you can easily try the reverse.
In the SVG sample put an ID on the circle, then add an fo:external-link (or internal) in the FO document having the target that ID.

Many regards,
Dan
by Dan
Wed Oct 24, 2018 4:55 pm
Forum: XSLT and FOP
Topic: Link between SVG image and text in an XML document
Replies: 6
Views: 1478

Re: Link between SVG image and text in an XML document

Hello David, I set up an example, but it works with mixed results. Assuming that in the XSL FO you have a block with the id "my_block_id": <?xml version="1.0" encoding="UTF-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fox="http://xmlgraphics.apache.org/fop/extensions"> <fo:layout...
by Dan
Wed Oct 24, 2018 4:25 pm
Forum: XSLT and FOP
Topic: How to publish a PDF Document with two flow data in parallel
Replies: 3
Views: 1474

Re: How to publish a PDF Document with two flow data in parallel

Hello David,

As far as I know, the XSL-FO supports only one flow declaration. Please try to contact a commercial XSL-FO processor vendor, like Antenna House or Xep, they may have the needed extensions and expertise.

Many regards,
Dan
by Dan
Tue Oct 16, 2018 10:39 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Adding page numbers to links in DITA PDFs generated with CSS?
Replies: 2
Views: 725

Re: Adding page numbers to links in DITA PDFs generated with CSS?

When applying the DITA Map to PDF (WYSIWIG or HTML5 based) transformation scenario, (having Chemistry as CSS processor ) you should automatically get links with a "(on page NN)" text following them. Are the links working (i.e. are clickable and navigate correctly)? What oXygen version are you using?...
by Dan
Mon Oct 08, 2018 8:31 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: PDF Table of Contents formatting
Replies: 3
Views: 842

Re: PDF Table of Contents formatting

Hello Victoria,

What transformation scenario are you using? Is it based on XSL-FO or CSS?

Many Regards,
Dan
by Dan
Thu Oct 04, 2018 2:26 pm
Forum: Common Problems
Topic: HTML Styled Correctly But PDF Isn't
Replies: 2
Views: 836

Re: HTML Styled Correctly But PDF Isn't

There are differences in the CSS support from Chemistry and a full Web Browser. For Chemistry, the column-count should be set on the @page, not on the matching element. Please use the following technique: 1. Define an outputclass on the topic root element. (as you already did) <topic outputclass="tw...
by Dan
Thu Oct 04, 2018 12:19 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: CSS-Based PDF: footnote
Replies: 3
Views: 923

Re: CSS-Based PDF: footnote

The @footnote part of a @page declaration controls the style of the separator between the page content and the footnotes. As content you should set a leader. The leader uses a letter or a line style to fill the entire width of the page. @page { margin:0.5in; .... @footnote { content: leader(solid); ...
by Dan
Mon Sep 24, 2018 12:27 pm
Forum: Feature Request
Topic: support text rotation
Replies: 10
Views: 3791

Re: support text rotation

The recommended way is to set a width and optionally a height to rotated block. Negative paddings or margins should be used as last resort. If you are using the HTML based transformation try: *[outputclass ~= "rotated"] > *[class ~= "topic/p"] { display: block; transform: rotate(-90deg) !important; ...
by Dan
Mon Sep 17, 2018 10:27 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Avoid Chapter numbering of some topics
Replies: 8
Views: 1877

Re: Avoid Chapter numbering of some topics

Can you send us your CSS to our support email address?
Thank you, Dan
by Dan
Fri Sep 14, 2018 3:18 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: CSS-Based PDF question about footers
Replies: 1
Views: 695

Re: CSS-Based PDF question about footers

Hello, This can be done using an SVG image that contains the text "Part Number" with a color, like this: <?xml version="1.0" encoding="UTF-8"?> <svg xmlns="http://www.w3.org/2000/svg" width="60pt" height="10pt" font-size="10pt" alignment-baseline="after-edge" font-family="SansSerif" > <!-- The heigh...
by Dan
Thu Sep 13, 2018 10:26 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Hazard Statement Styling
Replies: 12
Views: 2158

Re: Hazard Statement Styling

You should save the image for notice next to the customization CSS file. After this, add in you CSS: *[class ~= "hazard-d/hazardstatement"][type = "notice"]:before { content: url("other_notice_icon.png") " NOTICE"; } In this way you are changing the icon and label of the notice hazardstatements with...
by Dan
Wed Sep 12, 2018 11:53 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Avoid Chapter numbering of some topics
Replies: 8
Views: 1877

Re: Avoid Chapter numbering of some topics

Hello Stanislav,

Please check this topic from the urser-guide: https://www.oxygenxml.com/doc/versions/ ... ntent.html

Many regards,
Dan
by Dan
Wed Sep 12, 2018 11:50 am
Forum: Common Problems
Topic: merged2html5 -- Modifying xref elems
Replies: 5
Views: 1607

Re: merged2html5 -- Modifying xref elems

Maybe a CSS rule to hide the desc element could work as well.
I am glad you worked it out!

Best regards,
Dan
by Dan
Tue Sep 11, 2018 2:16 pm
Forum: Common Problems
Topic: merged2html5 -- Modifying xref elems
Replies: 5
Views: 1607

Re: merged2html5 -- Modifying xref elems

I do not understand exactly what happens, can you post here the fragments corresponding to the xref link as it appears in the .merged.xml and merged.html files from the output folder? Are you modifying the merged2merged or merged2html5 XSL processing? Let's take a look at how the plugin works: 1. A ...
by Dan
Mon Sep 10, 2018 2:54 pm
Forum: Common Problems
Topic: merged2html5 -- Modifying xref elems
Replies: 5
Views: 1607

Re: merged2html5 -- Modifying xref elems

Probably you need something like:

Code: Select all


<xsl:value-of select="node() except *[contains(@class, 'topic/shortdesc')]"/>
I have not tested it yet. Take a look at the merged file and modify the selector accordingly.

Many regards,
Dan
by Dan
Fri Sep 07, 2018 2:34 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: CSS-based PDF: Question about Avoid rules
Replies: 2
Views: 709

Re: CSS-based PDF: Question about Avoid rules

Hello,

Indeed, the property controls the break on columns and pages at the same time, and there is no workaround for this.
We will take a look to see if this can be implemented to ignore by default the column breaks.

Thank you,
Dan
by Dan
Fri Sep 07, 2018 10:00 am
Forum: Common Problems
Topic: Chapter First Page -- Big Logo and Big Top Margin
Replies: 2
Views: 1139

Re: Chapter First Page -- Big Logo and Big Top Margin

The "top-left-corner", "top-left", "top-center", "top-right", "top-right-corner" are all placed in the top margin of your page. (See https://www.oxygenxml.com/doc/versions/20.1/ug-chemistry/topics/ch_page_formatting.html, the "Page Margin Boxes" section.) You should increase the top margin of your p...
by Dan
Thu Sep 06, 2018 4:27 pm
Forum: Common Problems
Topic: Chemistry chokes on extended-ISO entity
Replies: 3
Views: 1184

Re: Chemistry chokes on extended-ISO entity

I checked with Arial Unicode MS font and it works better. The correct version (the above selector works only for the DITA and CSS direct transformation, not the one that uses HTML as intermediate format): *[class ~= "topic/dl"], .dl { font-family: "Times New Roman", "Arial Unicode MS"; } Regards, Dan
by Dan
Thu Sep 06, 2018 9:56 am
Forum: Common Problems
Topic: Chemistry chokes on extended-ISO entity
Replies: 3
Views: 1184

Re: Chemistry chokes on extended-ISO entity

To fix this you will need to use a fallback font. If you are using Times New Roman for the entire publication, you may consider adding Symbol as a fallback. In your customization CSS add: *[class ~= "topic/dlentry"] { font-family: "Times New Roman", Symbol; } Or other font that can render the charac...
by Dan
Wed Sep 05, 2018 2:57 pm
Forum: Common Problems
Topic: Chemistry: Omit Cover Page and TOC?
Replies: 19
Views: 4265

Re: Chemistry: Omit Cover Page and TOC?

I am glad it worked! I added more info about your usecase to the userguide of the DITA CSS PDF plugin, it will be available when we release the next version. The built-in CSS rules contain something like: *[class~='topic/topic'][is-chapter] { -oxy-page-group : start; } The "start" value makes the ch...
by Dan
Tue Sep 04, 2018 3:13 pm
Forum: Common Problems
Topic: format-date(current-date()) problem
Replies: 5
Views: 1733

Re: format-date(current-date()) problem

It looks like Saxon HE is limited by design: https://sourceforge.net/p/saxon/mailman/message/26849522/ The only workaround is to format the date like this: ... content: oxy_xpath("let $cm:= format-date(current-date(), '[MNn]') \ return concat( \ if ($cm= 'January') then 'JAN' else \ if ($cm= 'Februa...
by Dan
Tue Sep 04, 2018 2:52 pm
Forum: Common Problems
Topic: format-date(current-date()) problem
Replies: 5
Views: 1733

Re: format-date(current-date()) problem

Yes, indeed, I tested the expression using the Saxon SA XPath processor, while the Chemistry distribution contains Saxon HE. I will check what happens.

Thank you for the feedback!
Dan
by Dan
Tue Sep 04, 2018 2:14 pm
Forum: Common Problems
Topic: Create a copyright page in PDF output from Chemistry
Replies: 3
Views: 1986

Re: Create a copyright page in PDF output from Chemistry

Yes, it was an incomplete post. Now the details are here: post49050.html#p49050

Dan