Skip to content

Commit

Permalink
Merged revisions 636407-637074,637076-637118,637120-637790,637792-637…
Browse files Browse the repository at this point in the history
…856,637858-637992,637994-638047,638049-638307,638309-638315,638318-638936,638938-640888,640890-642905,642907-647402,647404-647536,647538-648983,648985-649005,649007-649013,649015-650549,650551-651301,651303-653536,653538-654452,654454-656285,656287-656523,656525-657519,657521-661579,661581-663481,663483-664691,664693-681285,681287-681290,681292-681298 via svnmerge from

https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_95

........
  r666635 | jeremias | 2008-06-11 14:18:53 +0200 (Mi, 11 Jun 2008) | 1 line
  
  Fixed resolution handling inside AWT preview dialog.
........
  r666662 | jeremias | 2008-06-11 15:33:20 +0200 (Mi, 11 Jun 2008) | 1 line
  
  Some notes on RTF and print output.
........
  r668533 | jeremias | 2008-06-17 09:57:55 +0200 (Di, 17 Jun 2008) | 2 lines
  
  Bugzilla #45151:
  Note on the "compiling" page that Ant 1.7 is required. The README file already points to this page.
........
  r668534 | jeremias | 2008-06-17 09:58:40 +0200 (Di, 17 Jun 2008) | 2 lines
  
  Update known issues.
  Remove ApacheConEU logo.
........
  r668550 | jeremias | 2008-06-17 10:05:22 +0200 (Di, 17 Jun 2008) | 2 lines
  
  Bugzilla #45146:
  Removed duplicate LICENSE.txt and Notice.txt from the JAR.
........
  r668570 | jeremias | 2008-06-17 10:54:07 +0200 (Di, 17 Jun 2008) | 1 line
  
  Wrong line number reported in the case of a line overflow.
........
  r668641 | jeremias | 2008-06-17 14:59:25 +0200 (Di, 17 Jun 2008) | 1 line
  
  Fixed potential NPE.
........
  r669118 | jeremias | 2008-06-18 11:02:45 +0200 (Mi, 18 Jun 2008) | 4 lines
  
  Bugzilla #44412:
  Regression fix for empty pages caused by multiple collapsible breaks.
  No more empty block areas if a break-before occurs on the first child of an FO to match the behaviour of tables and other FO implementations (clarification by XSL WG pending).
  Added an accessor interface for break-before/-after to avoid long if..else lists in BlockStackingLayoutManager.
........
  r669173 | jeremias | 2008-06-18 16:07:27 +0200 (Mi, 18 Jun 2008) | 7 lines
  
  Bugzilla #44887:
  Fixed potential multi-threading problem concerning the use of DecimalFormat.
  
  Results from performance measurements in a separate test (operation repeated 100'000 times, exemplary):
  shared static variable: ~220ms (old choice, problematic!)
  always create new instance: ~480ms
  ThreadLocal: ~220ms (new choice)
........
  r669478 | jeremias | 2008-06-19 15:03:57 +0200 (Do, 19 Jun 2008) | 4 lines
  
  Bugzilla #44412:
  Improvements after Vincent's feedback:
  Removal of the somewhat ugly Reference.
  getBreakBefore() reduced to private visibility.
........
  r670551 | jeremias | 2008-06-23 14:54:27 +0200 (Mo, 23 Jun 2008) | 3 lines
  
  Use configured source and target resolution for foreign objects in RTF output.
  Fixed intrinsic size calculation for SVG images when source resolution is not 72 dpi.
  Fixed calculation of px2mm values in the SVG to G2D converter (used by RTF output).
........
  r673750 | adelmelle | 2008-07-03 20:25:01 +0200 (Do, 03 Jul 2008) | 1 line
  
  Fix for Bugzilla 45295 (already committed to the trunk with r672010, r672495 and r672496)
........
  r674304 | jeremias | 2008-07-06 17:09:10 +0200 (So, 06 Jul 2008) | 18 lines
  
  Bugzilla #43606:
  column-width accepts percent values (proportional-column-width and % working)
  Table width accepts percent values (100% of the page width as standard)
  Nested tables are working
  It is also possible to make nested tables with a higher depth than 3 without causing word to crash
  Submitted by: Maximilan Aster <maximilian.aster.at.boc-eu.com>
  
  Changes to the patch by Jeremias:
  - Patch simplified (reuse of ColumnSetup from the layoutmgr package)
  - Percentages and proportional-column-width didn't work properly in my tests -> fixed
  - Adjustments for FOP code conventions
  
  Bugzilla #43824:
  page-number-citation working but has to be refreshed inside word to show the correct values
  Submitted by: Maximilan Aster <maximilian.aster.at.boc-eu.com>
  
  Changes to the patch by Jeremias:
  - Adjustments for FOP code conventions
........
  r674314 | jeremias | 2008-07-06 18:40:08 +0200 (So, 06 Jul 2008) | 7 lines
  
  Bugzilla #43825:
  leader supports fixed percent values for leader-length, most other properties
  use-content, leader-pattern-width not implemented
  Submitted by: Maximilan Aster <maximilian.aster.at.boc-eu.com>
  
  Changes to the patch by Jeremias:
  - Adjustments for FOP code conventions
........
  r674317 | jeremias | 2008-07-06 18:44:43 +0200 (So, 06 Jul 2008) | 1 line
  
  Doc update after RTF changes.
........
  r675106 | jeremias | 2008-07-09 09:03:46 +0200 (Mi, 09 Jul 2008) | 2 lines
  
  Bugzilla #45366:
  Document missing feature.
........
  r675150 | jeremias | 2008-07-09 14:56:41 +0200 (Mi, 09 Jul 2008) | 2 lines
  
  Bugzilla #39980:
  Fixed image scaling for RTF output.
........
  r675151 | jeremias | 2008-07-09 14:57:06 +0200 (Mi, 09 Jul 2008) | 1 line
  
  Removed unused code.
........
  r675152 | jeremias | 2008-07-09 14:58:18 +0200 (Mi, 09 Jul 2008) | 1 line
  
  Don't generate commands for default values.
........
  r675707 | jeremias | 2008-07-10 21:58:27 +0200 (Do, 10 Jul 2008) | 1 line
  
  Bugfix: -imagein didn't work because the stylesheet didn't get copied into fop.jar.
........
  r680715 | jeremias | 2008-07-29 16:37:10 +0200 (Di, 29 Jul 2008) | 1 line
  
  Found a surplus "pop state" which somehow causes a regression (fill color doesn't get properly reset) between 0.94 and 0.95. Shows in Barcode4J's fop-extension-demo.fo. The line has already been there in 0.94 but only shows in 0.95 probably due to an additional save/restore state pair added in PDFRenderer for reference areas after the block-container area refactoring.
........
  r680820 | jeremias | 2008-07-29 22:02:14 +0200 (Di, 29 Jul 2008) | 2 lines
  
  Bugzilla #41306:
  The AWT Renderer is really not out-of-order capable.
........
  r681284 | jeremias | 2008-07-31 08:47:49 +0200 (Do, 31 Jul 2008) | 1 line
  
  Some updates to status.xml (I was not the only one working on the final release).
........
  r681290 | jeremias | 2008-07-31 09:44:51 +0200 (Do, 31 Jul 2008) | 2 lines
  
  Website updates for the 0.95 release.
  The projectInfo plug-in of Forrest is not ideal for doing a bugfix release. It's not possible to combine the changes for two releases.
........
  r681292 | jeremias | 2008-07-31 09:47:13 +0200 (Do, 31 Jul 2008) | 1 line
  
  Disabling the ApacheCon ad for the release build.
........


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@681307 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
jmaerki committed Jul 31, 2008
1 parent c91862d commit 534a230
Show file tree
Hide file tree
Showing 53 changed files with 1,419 additions and 398 deletions.
12 changes: 8 additions & 4 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ http://xmlgraphics.apache.org/fop/stable/running.html
RELEASE NOTES
==============================================================================

Version 0.95beta
================
Version 0.95
============

This is a pre-version of the third production grade release of the new FOP
codebase. It contains many bug fixes and new features. See below for details.
This is a production grade release of Apache FOP.
It contains many bug fixes and new features. See below for details.

Compliance
----------
Expand Down Expand Up @@ -128,6 +128,10 @@ http://xmlgraphics.apache.org/fop/0.95/changes_0.95.html.
The long list of changes in this and earlier releases is available at
http://xmlgraphics.apache.org/fop/changes.html.

Changes since Version 0.95beta
------------------------------
Please refer to the list of changes on the web:
http://xmlgraphics.apache.org/fop/changes.html


Version 0.94
Expand Down
1 change: 1 addition & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ list of possible build targets.
<include name="**/*.icm"/>
<include name="**/*.xml"/>
<include name="**/*.LICENSE.txt"/>
<include name="**/*.xsl"/>
</fileset>
<fileset dir="${build.gensrc.dir}">
<include name="**/*.xml"/>
Expand Down
9 changes: 3 additions & 6 deletions known-issues.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@
MIF and SVG output support have not been restored, yet.
</known-issue>
<known-issue>
Java2D/AWT support has been improved, but some problems remain,
for example with block-containers.
RTF output is inferior to other output formats supported by FOP.
For details, please see the "Output Targets" page of the release
you're using.
</known-issue>
<known-issue>
Auto table layout is not implemented, yet.
Expand Down Expand Up @@ -80,10 +81,6 @@
Not all FO elements can be referenced by their "id", most notably:
table-body, table-header, table-footer and table-row.
</known-issue>
<known-issue>
The backgrounds of table-body, table-header, table-footer and
table-column are not painted, yet.
</known-issue>
<known-issue>
Border and padding conditionality are not supported on table-cells, yet.
</known-issue>
Expand Down
Binary file modified lib/avalon-framework-4.2.0.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion src/documentation/content/xdocs/0.95/compiling.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<section id="env-ant">
<title>Apache Ant</title>
<p>
<a href="ext:ant">Apache Ant</a> must be installed in order to
<a href="ext:ant">Apache Ant</a> (Version 1.7 or later) must be installed in order to
build FOP. Following best practices we don't include Ant with FOP anymore. You can find the
<a href="ext:ant/manual/">instructions to install Ant in the Ant manual</a> on the web.
</p>
Expand Down
28 changes: 28 additions & 0 deletions src/documentation/content/xdocs/0.95/output.xml
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,24 @@ out = proc.getOutputStream();]]></source>
<note>RTF output is currently unmaintained and lacks many features compared to other output
formats. Using other editable formats like Open Document Format, instead of producing XSL-FO
then RTF through FOP, might give better results.</note>
<p>
These are some known restrictions compared to other supported output formats (not a complete list):
</p>
<ul>
<li>
Not supported/implemented:
<ul>
<li>break-before/after (supported by the RTF library but not tied into the RTFHandler)</li>
<li>fo:page-number-citation-last</li>
<li>keeps (supported by the RTF library but not tied into the RTFHandler)</li>
<li>region-start/end (RTF limitation)</li>
<li>multiple columns</li>
</ul>
</li>
<li>Only a single page-master is supported</li>
<li>Not all variations of fo:leader are supported (RTF limitation)</li>
<li>percentages are not supported everywhere</li>
</ul>
</section>
<section id="xml">
<title>XML (Area Tree XML)</title>
Expand Down Expand Up @@ -735,6 +753,16 @@ out = proc.getOutputStream();]]></source>
It is possible to directly print the document from the command line.
This is done with the same code that renders to the Java2D/AWT renderer.
</p>
<section id="print-issues">
<title>Known issues</title>
<p>
If you run into the problem that the printed output is incomplete on Windows:
this often happens to users printing to a PCL printer.
There seems to be an incompatibility between Java and certain PCL printer drivers
on Windows. Since most network-enabled laser printers support PostScript, try
switching to the PostScript printer driver for that printer model.
</p>
</section>
</section>
<section id="bitmap">
<title>Bitmap (TIFF/PNG)</title>
Expand Down
1 change: 1 addition & 0 deletions src/documentation/content/xdocs/knownissues.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
<section>
<title>Other known issues</title>
<p>This section lists other known issues.</p>
<!-- See <root>/known-issues.xml for the source document of this section! -->
<xi:include href="cocoon://knownissues-raw-static.xml#xpointer(/document/body/*)"/>
</section>
</section>
Expand Down
7 changes: 4 additions & 3 deletions src/documentation/content/xdocs/site.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,11 @@
<!--
BEGIN Version 0.95 documentation tab
-->
<trunk label="FOP 0.95beta" href="0.95/" tab="stableversion">
<trunk label="FOP 0.95" href="0.95/" tab="stableversion">
<about label="About" href="index.html"/>
<release label="Release Notes" href="releaseNotes_0.95beta.html"/>
<changes label="Changes" href="changes_0.95beta.html"/>
<release label="Release Notes" href="releaseNotes_0.95.html"/>
<changes label="Changes (0.95)" href="changes_0.95.html"/>
<changes-beta label="Changes (0.95beta)" href="changes_0.95beta.html"/>
<knownissues label="Known Issues" href="knownissues_overview.html"/>
<upgrading label="Upgrading" href="upgrading.html"/>

Expand Down
2 changes: 1 addition & 1 deletion src/documentation/content/xdocs/tabs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<tabs software="FOP" title="FOP" copyright="@year@ The Apache Software Foundation" xmlns:xlink="http://www.w3.org/1999/xlink">
<tab label="Home" dir=""/>
<tab label="Version 0.94" dir="0.94/"/>
<tab label="Version 0.95beta" dir="0.95/"/>
<tab label="Version 0.95" dir="0.95/"/>
<tab label="FOP Trunk" dir="trunk/"/>
<tab label="Development" dir="dev/"/>
</tabs>
2 changes: 1 addition & 1 deletion src/documentation/content/xdocs/trunk/compiling.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<section id="env-ant">
<title>Apache Ant</title>
<p>
<a href="ext:ant">Apache Ant</a> must be installed in order to
<a href="ext:ant">Apache Ant</a> (Version 1.7 or later) must be installed in order to
build FOP. Following best practices we don't include Ant with FOP anymore. You can find the
<a href="ext:ant/manual/">instructions to install Ant in the Ant manual</a> on the web.
</p>
Expand Down
29 changes: 29 additions & 0 deletions src/documentation/content/xdocs/trunk/output.xml
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,24 @@ out = proc.getOutputStream();]]></source>
<note>RTF output is currently unmaintained and lacks many features compared to other output
formats. Using other editable formats like Open Document Format, instead of producing XSL-FO
then RTF through FOP, might give better results.</note>
<p>
These are some known restrictions compared to other supported output formats (not a complete list):
</p>
<ul>
<li>
Not supported/implemented:
<ul>
<li>break-before/after (supported by the RTF library but not tied into the RTFHandler)</li>
<li>fo:page-number-citation-last</li>
<li>keeps (supported by the RTF library but not tied into the RTFHandler)</li>
<li>region-start/end (RTF limitation)</li>
<li>multiple columns</li>
</ul>
</li>
<li>Only a single page-master is supported</li>
<li>Not all variations of fo:leader are supported (RTF limitation)</li>
<li>percentages are not supported everywhere</li>
</ul>
</section>
<section id="xml">
<title>XML (Area Tree XML)</title>
Expand Down Expand Up @@ -760,6 +778,16 @@ out = proc.getOutputStream();]]></source>
It is possible to directly print the document from the command line.
This is done with the same code that renders to the Java2D/AWT renderer.
</p>
<section id="print-issues">
<title>Known issues</title>
<p>
If you run into the problem that the printed output is incomplete on Windows:
this often happens to users printing to a PCL printer.
There seems to be an incompatibility between Java and certain PCL printer drivers
on Windows. Since most network-enabled laser printers support PostScript, try
switching to the PostScript printer driver for that printer model.
</p>
</section>
</section>
<section id="bitmap">
<title>Bitmap (TIFF/PNG)</title>
Expand Down Expand Up @@ -911,3 +939,4 @@ out = proc.getOutputStream();]]></source>
</document>



2 changes: 2 additions & 0 deletions src/documentation/skinconf.xml
Original file line number Diff line number Diff line change
Expand Up @@ -378,13 +378,15 @@ which will be used to configure the chosen Forrest skin.
<height>125</height>
</credit>
-->
<!--
<credit box-location="alt2">
<name>ApacheCon US 2008</name>
<url>http://us.apachecon.com/</url>
<image>http://apache.org/ads/ApacheCon/2008-usa-125x125.png</image>
<width>125</width>
<height>125</height>
</credit>
-->

<credit role="pdf">
<name>PDF created by Apache FOP</name>
Expand Down
3 changes: 2 additions & 1 deletion src/java/org/apache/fop/fo/flow/Block.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import org.apache.fop.fo.NullCharIterator;
import org.apache.fop.fo.PropertyList;
import org.apache.fop.fo.ValidationException;
import org.apache.fop.fo.properties.BreakPropertySet;
import org.apache.fop.fo.properties.CommonBorderPaddingBackground;
import org.apache.fop.fo.properties.CommonFont;
import org.apache.fop.fo.properties.CommonHyphenation;
Expand All @@ -44,7 +45,7 @@
* Class modelling the <a href="http://www.w3.org/TR/xsl/#fo_block">
* <code>fo:block object</code></a>.
*/
public class Block extends FObjMixed {
public class Block extends FObjMixed implements BreakPropertySet {

// used for FO validation
private boolean blockOrInlineItemFound = false;
Expand Down
3 changes: 2 additions & 1 deletion src/java/org/apache/fop/fo/flow/BlockContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.apache.fop.fo.FObj;
import org.apache.fop.fo.PropertyList;
import org.apache.fop.fo.ValidationException;
import org.apache.fop.fo.properties.BreakPropertySet;
import org.apache.fop.fo.properties.CommonAbsolutePosition;
import org.apache.fop.fo.properties.CommonBorderPaddingBackground;
import org.apache.fop.fo.properties.CommonMarginBlock;
Expand All @@ -38,7 +39,7 @@
* Class modelling the <a href="http://www.w3.org/TR/xsl/#fo_block-container">
* <code>fo:block-container</code></a> object.
*/
public class BlockContainer extends FObj {
public class BlockContainer extends FObj implements BreakPropertySet {
// The value of properties relevant for fo:block-container.
private CommonAbsolutePosition commonAbsolutePosition;
private CommonBorderPaddingBackground commonBorderPaddingBackground;
Expand Down
3 changes: 2 additions & 1 deletion src/java/org/apache/fop/fo/flow/ListBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.apache.fop.fo.FObj;
import org.apache.fop.fo.PropertyList;
import org.apache.fop.fo.ValidationException;
import org.apache.fop.fo.properties.BreakPropertySet;
import org.apache.fop.fo.properties.CommonBorderPaddingBackground;
import org.apache.fop.fo.properties.CommonMarginBlock;
import org.apache.fop.fo.properties.KeepProperty;
Expand All @@ -35,7 +36,7 @@
* Class modelling the <a href=http://www.w3.org/TR/xsl/#fo_list-block">
* <code>fo:list-block</code></a> object.
*/
public class ListBlock extends FObj {
public class ListBlock extends FObj implements BreakPropertySet {
// The value of properties relevant for fo:list-block.
private CommonBorderPaddingBackground commonBorderPaddingBackground;
private CommonMarginBlock commonMarginBlock;
Expand Down
3 changes: 2 additions & 1 deletion src/java/org/apache/fop/fo/flow/ListItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import org.apache.fop.fo.FObj;
import org.apache.fop.fo.PropertyList;
import org.apache.fop.fo.ValidationException;
import org.apache.fop.fo.properties.BreakPropertySet;
import org.apache.fop.fo.properties.CommonBorderPaddingBackground;
import org.apache.fop.fo.properties.CommonMarginBlock;
import org.apache.fop.fo.properties.KeepProperty;
Expand All @@ -34,7 +35,7 @@
* Class modelling the <a href=http://www.w3.org/TR/xsl/#fo_list-item">
* <code>fo:list-item</code></a> object.
*/
public class ListItem extends FObj {
public class ListItem extends FObj implements BreakPropertySet {
// The value of properties relevant for fo:list-item.
private CommonBorderPaddingBackground commonBorderPaddingBackground;
private CommonMarginBlock commonMarginBlock;
Expand Down
3 changes: 2 additions & 1 deletion src/java/org/apache/fop/fo/flow/table/Table.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import org.apache.fop.fo.PropertyList;
import org.apache.fop.fo.StaticPropertyList;
import org.apache.fop.fo.ValidationException;
import org.apache.fop.fo.properties.BreakPropertySet;
import org.apache.fop.fo.properties.CommonBorderPaddingBackground;
import org.apache.fop.fo.properties.CommonMarginBlock;
import org.apache.fop.fo.properties.KeepProperty;
Expand All @@ -42,7 +43,7 @@
* Class modelling the <a href="http://www.w3.org/TR/xsl/#fo_table">
* <code>fo:table</code></a> object.
*/
public class Table extends TableFObj implements ColumnNumberManagerHolder {
public class Table extends TableFObj implements ColumnNumberManagerHolder, BreakPropertySet {

/** properties */
private CommonBorderPaddingBackground commonBorderPaddingBackground;
Expand Down
2 changes: 1 addition & 1 deletion src/java/org/apache/fop/fo/flow/table/TableAndCaption.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* <code>fo:table-and-caption</code></a> property.
* @todo needs implementation
*/
public class TableAndCaption extends FObj {
public class TableAndCaption extends FObj /*implements BreakPropertySet*/ {
// The value of properties relevant for fo:table-and-caption.
// Unused but valid items, commented out for performance:
// private CommonAccessibility commonAccessibility;
Expand Down
3 changes: 2 additions & 1 deletion src/java/org/apache/fop/fo/flow/table/TableRow.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.apache.fop.fo.FONode;
import org.apache.fop.fo.PropertyList;
import org.apache.fop.fo.ValidationException;
import org.apache.fop.fo.properties.BreakPropertySet;
import org.apache.fop.fo.properties.CommonBorderPaddingBackground;
import org.apache.fop.fo.properties.KeepProperty;
import org.apache.fop.fo.properties.LengthRangeProperty;
Expand All @@ -35,7 +36,7 @@
* Class modelling the <a href="http://www.w3.org/TR/xsl/#fo_table-row">
* <code>fo:table-row</code></a> object.
*/
public class TableRow extends TableCellContainer {
public class TableRow extends TableCellContainer implements BreakPropertySet {
// The value of properties relevant for fo:table-row.
private LengthRangeProperty blockProgressionDimension;
private CommonBorderPaddingBackground commonBorderPaddingBackground;
Expand Down
33 changes: 33 additions & 0 deletions src/java/org/apache/fop/fo/properties/BreakPropertySet.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/* $Id$ */

package org.apache.fop.fo.properties;

/**
* Defines property access methods for the break-before and break-after properties.
*/
public interface BreakPropertySet {

/** @return the "break-after" property. */
int getBreakAfter();

/** @return the "break-before" property. */
int getBreakBefore();

}
4 changes: 2 additions & 2 deletions src/java/org/apache/fop/fonts/MultiByteFont.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
public class MultiByteFont extends CIDFont {

private static int uniqueCounter = -1;
private static final DecimalFormat COUNTER_FORMAT = new DecimalFormat("00000");

private String ttcName = null;
private String encoding = "Identity-H";
Expand Down Expand Up @@ -58,7 +57,8 @@ public MultiByteFont() {
uniqueCounter = 0; //We need maximum 5 character then we start again
}
}
String cntString = COUNTER_FORMAT.format(uniqueCounter);
DecimalFormat counterFormat = new DecimalFormat("00000");
String cntString = counterFormat.format(uniqueCounter);

//Subset prefix as described in chapter 5.5.3 of PDF 1.4
StringBuffer sb = new StringBuffer("E");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ public Image convert(Image src, Map hints) throws ImageException {
}

//Prepare
float pxToMillimeter = (float)UnitConv.mm2in(72); //default: 72dpi
float pxToMillimeter = UnitConv.IN2MM / 72; //default: 72dpi
Number ptm = (Number)hints.get(ImageProcessingHints.SOURCE_RESOLUTION);
if (ptm != null) {
pxToMillimeter = (float)UnitConv.mm2in(ptm.doubleValue());
pxToMillimeter = (float)(UnitConv.IN2MM / ptm.doubleValue());
}
UserAgent ua = createBatikUserAgent(pxToMillimeter);
GVTBuilder builder = new GVTBuilder();
Expand Down
Loading

0 comments on commit 534a230

Please sign in to comment.