From: Bertrand Delacretaz Date: Thu, 21 Sep 2006 13:06:25 +0000 (+0000) Subject: Working on bug #5335, barcode.fo example fixed to work with current code X-Git-Tag: fop-0_93~77 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=303963527f0c5a9d58ec6077d135ced29421eaf1;p=xmlgraphics-fop.git Working on bug #5335, barcode.fo example fixed to work with current code git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@448544 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/examples/fo/advanced/K3.xml b/examples/fo/advanced/K3.xml index 7d9f109f9..2b46b76d9 100644 --- a/examples/fo/advanced/K3.xml +++ b/examples/fo/advanced/K3.xml @@ -1,5 +1 @@ - - -New003900002193903300TYPE0CIDFontType20 +New39003900002193903300TYPE0CIDFontType20 \ No newline at end of file diff --git a/examples/fo/advanced/bar.conf.xml b/examples/fo/advanced/bar.conf.xml index 828eff849..0e4f37868 100644 --- a/examples/fo/advanced/bar.conf.xml +++ b/examples/fo/advanced/bar.conf.xml @@ -1,14 +1,87 @@ - + + + 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. +--> + - - - - - + - + + + + . + + + 72 + + 72 + + + + + + + + + + + flate + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/fo/advanced/barcode.fo b/examples/fo/advanced/barcode.fo index 54f628c5e..155fc2421 100644 --- a/examples/fo/advanced/barcode.fo +++ b/examples/fo/advanced/barcode.fo @@ -34,35 +34,66 @@ - - + + - - Example embedding Font - + + Example embedding Font + + + + This example shows how to use an embedded font and + uses a free barcode font as an example. The barcode font is from + http://www.geocities.com/keith_dimmock/ + and is free. + + + + To generate the PDF from this example, set the following build parameters + (for example in build-local.properties) and run "build examples" from the + top-level FOP source code directory. + + + fo.examples.dir = ./examples/fo/advanced + fo.examples.include = **/barcode.fo + fo.examples.userconfig = examples/fo/advanced/bar.conf.xml + fo.examples.force = true + + + + + If the character encoding is correct in the generated PDF (bugzilla 5335), searching for "123456" should + find the first barcode, and "234567" the second. + + + + First barcode: *ID123456* + + + + *ID123456* + + + + normal text, follows first barcode. + + + + Second barcode: *ID234567* and some text + + + + *ID234567* and some text + - - This example shows how to use an embedded font and - uses a free barcode font as an example. The barcode font is from - http://www.geocities.com/keith_dimmock/ - and is free. - - - - *ID123456* - - - - normal text - - - - *ID123456* normal text - - - + + normal text, follows second barcode. + + +