Search found 501 matches

by Dan
Thu Apr 05, 2018 12:31 pm
Forum: Common Problems
Topic: Create a copyright page in PDF output from Chemistry
Replies: 3
Views: 3634

Re: Create a copyright page in PDF output from Chemistry

See the replies from that topic.
Cheers,
Dan
by Dan
Thu Apr 05, 2018 10:06 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Add a copyright page to PDF output from Chemistry CSS-PDF transformation
Replies: 1
Views: 1259

Re: Add a copyright page to PDF output from Chemistry CSS-PDF transformation

Indeed, a bookmap would be more appropriate for your use case. However, you can add a synthetic page using the following technique. In your customization CSS add the following: @namespace oxy "http://www.oxygenxml.com/extensions/author"; /* Declare a new page. */ @page copyright-notice-pag...
by Dan
Wed Mar 21, 2018 10:31 am
Forum: Common Problems
Topic: Tracking changes in PDF Output
Replies: 5
Views: 2705

Re: Tracking changes in PDF Output

I am not sure what happens. It would be great if you can send us an example PDF and small DITA topic showing the problem. Please zip them and send them using the technical support form: https://www.oxygenxml.com/techSupport.html

Many regards,
Dan
by Dan
Mon Mar 19, 2018 4:43 pm
Forum: Common Problems
Topic: Tracking changes in PDF Output
Replies: 5
Views: 2705

Re: Tracking changes in PDF Output

Hello Anna, It is possible that the external pdf-css plugin uses other Chemistry processor or other CSSs than the plugin/scenario built in oXygen. See: https://www.oxygenxml.com/doc/versions/20.0/ug-author/topics/preferences-dita-logging.html Please compare the transformation console between the two...
by Dan
Mon Mar 19, 2018 10:07 am
Forum: Common Problems
Topic: Specify max-width
Replies: 6
Views: 5015

Re: Specify max-width

Hello, I added the topicref to a DITA map and it appeared correctly in the TOC of the WYSIWYG transformation. I used the newly released oXygen 20.0. The only problem was the line of dots that connects the topic name to the page number - it has no meaning for the external resources, and it must be re...
by Dan
Thu Mar 15, 2018 12:06 pm
Forum: Common Problems
Topic: Tracking changes in PDF Output
Replies: 5
Views: 2705

Re: Tracking changes in PDF Output

Hello, For the first problem we have no available fix. I have noted as an enhancement request. To remove the footnotes associated to document changes add this snippet to your CSS: oxy-delete, oxy-insert{ float:none; display:none; } If you need to hide the footnotes for the comments, add the oxy-comm...
by Dan
Fri Mar 02, 2018 11:31 am
Forum: XSLT and FOP
Topic: Add page break to topicref at map level
Replies: 7
Views: 5435

Re: Add page break to topicref at map level

The "map/topicref" elements from the TOC section have the same @id attribute as the topics they point to in the main content. I recomend to the the following: Change your template to match the "topic/topic" elements. Use the @id attribute of the matched elements to find the corre...
by Dan
Thu Feb 22, 2018 12:41 pm
Forum: General XML Questions
Topic: Table styles in CSS (last child)
Replies: 3
Views: 3077

Re: Table styles in CSS (last child)

The CSS selectors from your code sample are matching cells that are at the upper or left side of a separator. In my tests I see only the last cell from the last row having no padding - this is because my table has rowsep and colseps on all rows and cells. I think you simply need to add a fallback CS...
by Dan
Wed Feb 21, 2018 5:33 pm
Forum: XSLT and FOP
Topic: Add page break to topicref at map level
Replies: 7
Views: 5435

Re: Add page break to topicref at map level

Maybe you can use conrefs? Create a shell topic that has the outputclass set on it that includes the content of the real topic? But maybe dita-users is a better place to find out an answer.
by Dan
Wed Feb 21, 2018 10:05 am
Forum: XSLT and FOP
Topic: Add page break to topicref at map level
Replies: 7
Views: 5435

Re: Add page break to topicref at map level

You should move the outputclass attribute to the "topic" element, and change your XSL match to <xsl:template match="*[contains(@class, ' topic/topic ')]">. Avoid matching topicrefs, these go into the TOC section of the publication. Another way is to use the technique discussed he...
by Dan
Tue Mar 07, 2017 10:07 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Add javascript to a WYSIWYG pdf transform with Prince?
Replies: 5
Views: 2955

Re: Add javascript to a WYSIWYG pdf transform with Prince?

Please add a white-space property to the "zebra" div, like:

Code: Select all


div[class ~= "zebra"] {
...
white-space:pre-wrap;
...
}
You can read more about this property here:
https://developer.mozilla.org/en/docs/W ... hite-space

Regards,
Dan
by Dan
Fri Feb 17, 2017 10:25 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Add javascript to a WYSIWYG pdf transform with Prince?
Replies: 5
Views: 2955

Re: Add javascript to a WYSIWYG pdf transform with Prince?

Ok, there are two ways of doing that zebra type of codeblock styling: 1. Modify the index-pass2.js file from the "com.oxygenxml.pdf.css" plugin, adding your JavaScript code. The Prince XML processor is invoked from the build.xml file, in the target with name="prince". You can mod...
by Dan
Thu Feb 16, 2017 3:19 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: How to get pdf bookmarks in Prince pdf-WYSIWYG transformation?
Replies: 2
Views: 1506

Re: How to get pdf bookmarks in Prince pdf-WYSIWYG transformation?

Hello Justine, You can use the following CSS snippet (it will be included in oXygen 19): @media print { *[class~="topic/topic"] > *[class~="topic/title"] { prince-bookmark-level: 1; -ah-bookmark-level: 1; } *[class~="topic/topic"] *[class~="topic/topic"] > *[c...
by Dan
Tue Jan 03, 2017 4:57 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Documentation on Prince + CSS
Replies: 4
Views: 2046

Re: Documentation on Prince + CSS

Hello, We do not have yet such a documentation, but here are some hints: I would start by creating a CSS file that imports two other CSS files: 1. the one from the Oxygen installation that gives styling for common DITA elements, for example: OXYGEN_INSTALL_DIR/frameworks/dita/css/edit/dita.css 2. th...
by Dan
Tue Jan 03, 2017 12:49 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Documentation on Prince + CSS
Replies: 4
Views: 2046

Re: Documentation on Prince + CSS

You can modify this behavior by changing the "dita.css.list" parameter of the "DITA Map PDF - WYSIWYG" transformation scenario. The documentation for this parameter states the following: The files must have URL syntax and be separated using semicolons. If the value is empty, then...
by Dan
Tue Nov 22, 2016 1:43 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: CALS Table colspec and PrinceXML
Replies: 5
Views: 2380

Re: CALS Table colspec and PrinceXML

Another approach is to set an @outputclass attribute on your table, then match it and style it from the CSS. This works specially if you have all entries from a column styled the same. For example to add row separators for the first column (I use element names, not DITA classes values for simplicity...
by Dan
Tue Nov 22, 2016 1:30 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: CALS Table colspec and PrinceXML
Replies: 5
Views: 2380

Re: CALS Table colspec and PrinceXML

Hello, Here are some details and workarounds: About the column width : Since 18.1 oXygen converts the DITA colspec @colwidth attribute to a @style attribute. For example: colwidth = 0.3* -> style = 'width:33%' colwidth = 20 -> style = 'width:20' This width property is interpreted by Prince, so it sh...
by Dan
Fri Nov 18, 2016 12:27 pm
Forum: XSLT and FOP
Topic: Keep <title> and <image> together in <fig> element
Replies: 3
Views: 3040

Re: Keep <title> and <image> together in <fig> element

Please read the topic https://www.oxygenxml.com/forum/topic12552.html , it is the same problem, but it refers to tables. I think you could use: <xsl:attribute-set name="fig" .......... > <xsl:attribute name="keep-together.within-page">1</xsl:attribute> </xsl:attribute-set>
by Dan
Wed Nov 16, 2016 12:14 pm
Forum: XSLT and FOP
Topic: Keep <title> and <image> together in <fig> element
Replies: 3
Views: 3040

Re: Keep <title> and <image> together in <fig> element

Hello,

Try using: page-break-inside="avoid" on the fig element.

Regards,
Dan
by Dan
Tue Jun 07, 2016 12:24 pm
Forum: Common Problems
Topic: Attributes being discarded
Replies: 13
Views: 5417

Re: Attributes being discarded

The problem was caused by the "xlink:type" attribute (having a fixed value set in the associated XML Schema) conflicting with the specified "type" attribute from the XML document. The problem is now resolved and the fix will enter the next hot fixes build. I expect this to be ava...
by Dan
Mon Jun 06, 2016 4:50 pm
Forum: Common Problems
Topic: Attributes being discarded
Replies: 13
Views: 5417

Re: Attributes being discarded

Thank you for the samples! We reproduced the problem, and we are in the process of fixing it. I will come back with details.

Regards,
Dan Caprioara
by Dan
Tue May 10, 2016 10:58 am
Forum: SDK-API, Frameworks - Document Types
Topic: Error loading hunspell library on windows
Replies: 26
Views: 12777

Re: Error loading hunspell library on windows

We migrated the fix into the SDK.
Make sure you use version 18.0.0.1 in your pom.xml file if you are using Maven, or download the entire set of libraries from: https://www.oxygenxml.com/maven/com/oxy ... .1-all.zip

Many regards,
Dan
by Dan
Tue May 10, 2016 10:48 am
Forum: SDK-API, Frameworks - Document Types
Topic: Error loading hunspell library on windows
Replies: 26
Views: 12777

Re: Error loading hunspell library on windows

Ok, no problem. I think this code was developed for Java 6 on Mac.
by Dan
Mon May 09, 2016 9:59 am
Forum: SDK-API, Frameworks - Document Types
Topic: Error loading hunspell library on windows
Replies: 26
Views: 12777

Re: Error loading hunspell library on windows

It is executed on the Mac. If you remove it it will simply not find the library.
by Dan
Thu May 05, 2016 12:15 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Error loading hunspell library on windows
Replies: 26
Views: 12777

Re: Error loading hunspell library on windows

Until we release a new SDK with the fix, please use this code in your app (it works also on the Mac ): String os = System.getProperty("os.name").toLowerCase(); String arch = System.getProperty("os.arch").toLowerCase(); System.out.println("Loading Hunspell for OS:" + os ...
by Dan
Wed May 04, 2016 4:40 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Error loading hunspell library on windows
Replies: 26
Views: 12777

Re: Error loading hunspell library on windows

Hello Scott,

We reproduced the problem on our side, with the latest JRE, and I can confirm that the code you posted loads hunspell DLL correctly on Windows. On Mac it fails.
We will take a closer look and keep you updated.

Regards,
Dan
by Dan
Tue May 03, 2016 10:11 am
Forum: SDK-API, Frameworks - Document Types
Topic: Error loading hunspell library on windows
Replies: 26
Views: 12777

Re: Error loading hunspell library on windows

Hello Scott, It works fine for us to switch to the text page. This is how it looks: http://www.oxygenxml.com/forum/files/reviewer-text-page.png Try this: create a "main" method in the class that is refered by the JNLP and run it directly, from your IDE. If it gives a different result, then...
by Dan
Thu Apr 28, 2016 2:14 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Error loading hunspell library on windows
Replies: 26
Views: 12777

Re: Error loading hunspell library on windows

In a previous message you said that our sample reviewer worked for you when using the SDK version 17.1. Just changing the version in the POM file to 17.0 makes Hunspell fail for that specific sample?

By the way, I tested with a sample containing just the Text page, and it works ok.
by Dan
Wed Mar 30, 2016 12:25 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Tiny font and tool bar in Windows 10
Replies: 7
Views: 5011

Re: Tiny font and tool bar in Windows 10

The problem is caused by oXygen applet not detecting properly the HiDPI settings on Windows - it misses a native library for doing it. As a workaround you could alter the pom.xml file from the sample applet project, adding: <dependency> <groupId>net.java.dev.jna</groupId> <artifactId>jna</artifactId...
by Dan
Mon Mar 28, 2016 2:12 pm
Forum: Common Problems
Topic: fold-left signature wrong in tooltip
Replies: 1
Views: 1571

Re: fold-left signature wrong in tooltip

Hello Frank,
Thank you for the feedback! I corrected the documentation for both the fold-left and fold-right functions. The fix will enter the next oXygen release.

Best regards,
Dan Caprioara