Search found 480 matches

by Dan
Thu Mar 18, 2021 10:10 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Customizing com.oxygenxml.pdf.css DITA-OT plugin
Replies: 1
Views: 231

Re: Customizing com.oxygenxml.pdf.css DITA-OT plugin

Hello John, The HTML5 based transformation can be customized using XSLT templates, but is not recommended to do it through a DITA-OT plugin (it would work only if you change the DITA-OT, which for an installed Oxygen editor can be hard), but instead using an Oxygen Publishing Template. Please read m...
by Dan
Mon Mar 01, 2021 12:28 pm
Forum: Common Problems
Topic: Comparing the output from two PDF Chemistry versions
Replies: 3
Views: 1548

Re: Comparing the output from two PDF Chemistry versions

Speaking of notes, we are about to change them in 23.1, I hope they will not break again your customization :). We plan to stabilize the intermediate HTML structure and the default CSS starting from version 24. For our regression tests we use the PDFBox Java library. We actually check differences be...
by Dan
Thu Feb 25, 2021 3:39 pm
Forum: Common Problems
Topic: Comparing the output from two PDF Chemistry versions
Replies: 3
Views: 1548

Re: Comparing the output from two PDF Chemistry versions

Thank you for sharing! For our automated tests we use area tree dumps (XML fragments with all the details: coordinates, shapes, text position), Comparing the images is probably more intuitive.
by Dan
Mon Feb 22, 2021 11:46 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: pdf-css-html5 transformation - external html links trying to be copied
Replies: 1
Views: 245

Re: pdf-css-html5 transformation - external html links trying to be copied

We cannot reproduce this on a standard Oxygen XML Editor installation. From the log I see you are using an Ixiasoft transformation pipeline. I recommend contacting them.

Many regards,
Dan
by Dan
Fri Jan 15, 2021 11:24 am
Forum: Feature Request
Topic: Applying higher compression to PDF files
Replies: 2
Views: 1901

Re: Applying higher compression to PDF files

I recorded an issue about trying to reduce the size of the PDF files. The PDF Box: https://pdfbox.apache.org/ library can handle PDF and can load and resave them with other compression settings, maybe you can try it.
by Dan
Thu Dec 31, 2020 10:52 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: DITA to PDF via CSS image float support
Replies: 5
Views: 652

Re: DITA to PDF via CSS image float support

Floats are a complex task. We are trying to implement it in the next major version, for the next autumn...
Many regards,
Dan
by Dan
Thu Dec 31, 2020 10:49 am
Forum: XSLT and FOP
Topic: Custom PDF plugin doesn't recognize FIRST and LAST body pages
Replies: 4
Views: 986

Re: Custom PDF plugin doesn't recognize FIRST and LAST body pages

A hint, I am not an expert in XSL-FO customization, probably this type of questions are better answered on the DITA-OT discussion list (see https://www.dita-ot.org/support) These templates generate static content that is associated to a page sequence. By repeatedly applying find in files (each time ...
by Dan
Tue Dec 29, 2020 11:26 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: How to display text in section with subsection
Replies: 2
Views: 304

Re: How to display text in section with subsection

For advanced questions regarding the XSL-FO publishing plugin, please use: https://dita-users.groups.io/g/main

Can you give more details about how the numbering is activated? Do you use a plugin, or a parameter?

Many regards,
Dan
by Dan
Tue Dec 29, 2020 11:08 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: DITA to PDF via CSS image float support
Replies: 5
Views: 652

Re: DITA to PDF via CSS image float support

It will not be done on short term. If you are in a hurry, please consider using Antenna House or Prince XML as CSS processors, they are great layout engines. You can use the css.processor.type and css.processor.path.* parameters to specify the path to the processor to use. https://www.oxygenxml.com/...
by Dan
Mon Dec 28, 2020 11:10 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: DITA to PDF via CSS image float support
Replies: 5
Views: 652

Re: DITA to PDF via CSS image float support

Indeed, the float is experimental, so I would not recommend using it yet. I will increase the priority of this feature.

Many regards,
Dan
by Dan
Fri Dec 18, 2020 7:23 pm
Forum: Common Problems
Topic: Pointing to a different SVG cover based on bookmap info
Replies: 5
Views: 750

Re: Pointing to a different SVG cover based on bookmap info

Sure, you can set the name of the image file in the metadata section, in a data element (you can put one in the prodname element for instance, or in a topic), then use XPath to extract it and pass it to the CSS url function. In the next example the name attribute of the data element is set to 'image...
by Dan
Fri Dec 18, 2020 12:12 pm
Forum: Common Problems
Topic: Pointing to a different SVG cover based on bookmap info
Replies: 5
Views: 750

Re: Pointing to a different SVG cover based on bookmap info

The solution is to use an XPath to extract some information from the document, and based on it select the SVG images. @page front-page { background-image: url(oxy_xpath("\ if(//*[contains(@class, ' topic/prodname ')][1] = 'gardening') then 'bg-gardening.svg' else\ if(//*[contains(@class, ' topic/pro...
by Dan
Thu Dec 03, 2020 11:46 am
Forum: Common Problems
Topic: Finding over-width tables (and cleaning up transformation warnings?)
Replies: 4
Views: 757

Re: Finding over-width tables (and cleaning up transformation warnings?)

Indeed the error messages are issued when the intermediate FO file is processed and are pointing to lines and columns in this file. You can open the .fo file in oXygen and identify the markup. Further you can use the text content of that table to identify the original topic. I will record an improve...
by Dan
Tue Oct 27, 2020 3:50 pm
Forum: Common Problems
Topic: Chapter title numbering, counting sections from zero in a specific chapter
Replies: 5
Views: 1573

Re: Chapter title numbering, counting sections from zero in a specific chapter

Hello Manohar,

Could you please send your current customization CSS and a small sample using the form https://www.oxygenxml.com/techSupport.html?
What oXygen are you using right now?

Many regards,
Dan
by Dan
Mon Oct 12, 2020 1:46 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Generation of Table of contents and index page
Replies: 11
Views: 2286

Re: Generation of Table of contents and index page

No, unfortunately the index must be placed in either frontmatter or backmatter, and those elements cannot be placed between chapters. I understand the first chapter plays a special role, is a kind of abstract. Why not placing in in the frontmatter, as an abstract? If you need more information about ...
by Dan
Mon Oct 12, 2020 12:43 pm
Forum: Common Problems
Topic: Automatically keeping introduction paragraphs with their content
Replies: 2
Views: 686

Re: Automatically keeping introduction paragraphs with their content

Hello Chris, Thank you for sharing your code! So, whenever you have a paragraph that contains punctuation like column or comma, the next content (like images, or other content that may follow it) is kept on the same page with the paragraph. Is a nice example on how powerful is a combination of XSL a...
by Dan
Wed Oct 07, 2020 8:57 am
Forum: Feature Request
Topic: Using a more recent PDF version for PDF production
Replies: 13
Views: 2015

Re: Using a more recent PDF version for PDF production

We will look into this, thank you for letting us know.
Dan
by Dan
Tue Sep 29, 2020 9:17 am
Forum: Common Problems
Topic: DITA-OT HTML5 processing in PDF Chemistry
Replies: 6
Views: 1446

Re: DITA-OT HTML5 processing in PDF Chemistry

Such a complex situation... Glad you work it out!
by Dan
Thu Sep 24, 2020 12:53 pm
Forum: Common Problems
Topic: DITA-OT HTML5 processing in PDF Chemistry
Replies: 6
Views: 1446

Re: DITA-OT HTML5 processing in PDF Chemistry

I am not sure why this happens. You can try debugging the XSLT transformation with oXygen - it is a bit complicated to setup this, but here is how it may be done: The file you need to debug is: DITA-OT/plugins/com.oxygenxml.pdf.css/xsl/merged2merged/merged.xsl First, make a DITA transformation with ...
by Dan
Thu Sep 24, 2020 11:52 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Failed to run pipline
Replies: 3
Views: 537

Re: Failed to run pipline

I am glad it worked! There are some ideas about updating specializations here: https://www.oxygenxml.com/dita/1.3/specs/non-normative/migration-to-new-version.html If you need a DITA professional advice for this, please direct your questions to the dita-user mailing list. If you have other questions...
by Dan
Mon Sep 21, 2020 12:23 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Failed to run pipline
Replies: 3
Views: 537

Re: Failed to run pipline

Hello, We implemented a restriction in the catalog resolver to avoid security issues like the transformation process reading files unrelated to the transformation. This is useful when you are using a DITA-OT in a context where the content may come from outside organization contributors. You can disa...
by Dan
Mon Sep 14, 2020 4:27 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Prevent blank pages before chapters in PDF output
Replies: 3
Views: 1764

Re: Prevent blank pages before chapters in PDF output

What PDF transformation are you using, the one based on XSL-FO or HTML5+CSS? For the later, please see the page breaking documentation topic: https://www.oxygenxml.com/doc/versions/ ... e_breaking
by Dan
Tue Sep 08, 2020 9:18 am
Forum: Common Problems
Topic: Chapter title numbering, counting sections from zero in a specific chapter
Replies: 5
Views: 1573

Re: Chapter title numbering

For the TOC you should see how the counters toc-section1 and toc-chapter-and-sections are used in the p-numbering-deep.css file (similar to section1 and chapter-and-section counters that are used for titles in the main content). The default numbering CSS file is located in: OXYGEN_INSTALL_DIR/DITApl...
by Dan
Sun Sep 06, 2020 9:39 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Want chapter numbering to continue through bibliolist and glossary
Replies: 7
Views: 999

Re: Want chapter numbering to continue through bibliolist and glossary

Depending on the args.css numbering parameter, one of the CSSs is used: OXYGEN_INSTALL_DIR/DITA-OT3X/plugins/com.oxygenxml.pdf.css/css/print/p-numbering-shallow.css OXYGEN_INSTALL_DIR/DITA-OT3X/plugins/com.oxygenxml.pdf.css/css/print/p-numbering-deep.css Unfortunately, there are lots of CSS selector...
by Dan
Thu Sep 03, 2020 10:01 am
Forum: Common Problems
Topic: Chapter title numbering, counting sections from zero in a specific chapter
Replies: 5
Views: 1573

Re: Chapter title numbering

This is a very specific requirement. The solution is to reset the section1 counter to 0 by matching the topic chapter with a specific ID (or outputclass), or the first topic from that chapter. You need to do this in both the TOC and content counters, so you will need an outputclass set on the topicr...
by Dan
Fri Aug 28, 2020 9:53 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Add image (company logo) in header section, while creating custom.css
Replies: 5
Views: 1691

Re: Add image (company logo) in header section, while creating custom.css

I see from the image properties screenshot that the image is a perfect square, while in the CSS you are using slightly different values for the width and for the height. To get perfect alignment of graphical elements in the page, we recommend using a single background image for the entire page, as i...
by Dan
Fri Jul 03, 2020 2:42 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Custom transformation parameters for css (background image for the title page)
Replies: 5
Views: 806

Re: Custom transformation parameters for css

Please note that the image path should be given as an absolute URI, like: file:/C:/temp/example.svg. It works also with relative paths, but it will solve them relative to the XML location.
by Dan
Mon Jun 29, 2020 10:38 am
Forum: Common Problems
Topic: New URLDecoder Illegal Hex Error
Replies: 2
Views: 526

Re: New URLDecoder Illegal Hex Error

There might be something that has changed in the DITA files (maybe something that is included from multiple maps). This is what you can try: 1. Copy your map and try to remove topic reference from it until this specific error disappears. Try to identify the specific topic that causes the problem. Cr...
by Dan
Thu Jun 04, 2020 8:50 am
Forum: Common Problems
Topic: Conditionalizing PDF output based on a map's @outputclass
Replies: 7
Views: 1982

Re: Conditionalizing PDF output based on a map's @outputclass

Please see: https://www.oxygenxml.com/doc/versions/22.1/ug-chemistry/topics/ch_pdf_output.html#ch_metadata__section_aqz_j2j_wz -oxy-pdf-meta-title It is used to extract the publication title. If this CSS selector matches multiple elements, only the first element in the document order will be used to...