You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Bo Berkhaut <bo...@corp.syntext.com> on 2000/03/15 10:00:11 UTC

fop-generated PDF and gv

Hi!

I've tried to view PDF file generated using FOP with gv program.
In fact, nothing has appeared.
What has confused interpreter was the '\Count 0' string in the
begining of PDF file (acroread processes same file normally).
After some code exploration I've found that simply increment was
missed [am I right?] (following is context diff):

*** PDFPages.java.orig	Fri Feb  4 15:43:09 2000
--- PDFPages.java	Fri Feb  4 15:44:05 2000
***************
*** 40,45 ****
--- 40,46 ----
      public void addPage(PDFPage page) {
  	this.kids.addElement(page);
  	page.setParent(this);
+ 	count++;
      }
  
      /**


My second problem is more sophisticated.
I want FOP to generate PDF which uses TrueType fonts.
(Of cource, I can produce XML files with metrics using freetype.
This is NOT a problem.)
But how can I refer to a glyph with code >255 in PDF file?
This can be done by name, but how to make FOP use glyph names instead
of glyph indexes?
Are there any development efforts to support international character sets
in FOP?


--bo



P.S. Fortunately, I need not such things as right-to-left typesetting
and CJK ideographs. All I need is some more characters to use in my
document.


-- 
bo berkhaut
http://www.syntext.com
--

Status

Posted by Fotis Jannidis <Fo...@lrz.uni-muenchen.de>.
From:           	Bo Berkhaut <bo...@corp.syntext.com>
> Hi!
> 
> I have just look through mailing list archive and found the recent
> discussion of using Unicode in FOP generated PDF files.
> Now my questions are following:
>   (1) Is there anybody developing such facility (i.e. output Unicode
>       streams instead of WinAnsi streams)?

Don't think so. Here is the status file:
Fotis

STATUS

Things worked on:

rewrite of the org.apache.fop.layout in a new package (implements xsl 2000) [James 
Tauber]
image support [Eric Schaeffer, Pankaj Narula]
simple-links [Arved Sandstrom]
SVG support [Keiron Liddle][Torsten Friebe]
more borders, padding and absolute positioning [Jon Smirl]
smooth shading in PDF [Steve Coffman]


Things to do:

Get images working
[PARTIAL] Get padding working
[DONE] Incorporate Arved Sandstrom's simple-link implementation
[PARTIAL] Implement basic keeps
[PARTIAL] Incorporate Eric Schaeffer's further table fixes
Implement MessageHandler (or similar)
Support XSL Working Draft 12 January 2000


FOP, Unicode and TrueType

Posted by Bo Berkhaut <bo...@corp.syntext.com>.
Hi!

I have just look through mailing list archive and found the recent
discussion of using Unicode in FOP generated PDF files.
Now my questions are following:
  (1) Is there anybody developing such facility (i.e. output Unicode
      streams instead of WinAnsi streams)?
  (2) Do I need Composite Fonts for Unicode support or I can use 
      TrueType fonts with appropriate CMAPs instead?
      Does it depend on interpreter I use?
      (my PDF interpreter is GhostScript 5.10 which supports TrueType
      fonts directly)

--bo



Re: fop-generated PDF and gv

Posted by Arved Sandstrom <Ar...@chebucto.ns.ca>.
Yeah, I do. An oversight on my part. I tend to use xpdf over acroread on 
Linux, and I've already incorporated the fix, because otherwise xpdf would 
be barfing too. I just need to commit it.

I knew I was missing something...

Arved

At 10:53 AM 3/15/00 +0100, you wrote:
>Thanks for the patch. I think Arved has something like this on his to
commit list,
>Fotis
>
>> Hi!
>> 
>> I've tried to view PDF file generated using FOP with gv program.
>> In fact, nothing has appeared.
>> What has confused interpreter was the '\Count 0' string in the
>> begining of PDF file (acroread processes same file normally).
>> After some code exploration I've found that simply increment was
>> missed [am I right?] (following is context diff):
>> 
>> *** PDFPages.java.orig	Fri Feb  4 15:43:09 2000
>> --- PDFPages.java	Fri Feb  4 15:44:05 2000
>> ***************
>> *** 40,45 ****
>> --- 40,46 ----
>>       public void addPage(PDFPage page) {
>>   	this.kids.addElement(page);
>>   	page.setParent(this);
>> + 	count++;
>>       }
>>   
>>       /**



Re: fop-generated PDF and gv

Posted by Fotis Jannidis <Fo...@lrz.uni-muenchen.de>.
Thanks for the patch. I think Arved has something like this on his to commit list,
Fotis

> Hi!
> 
> I've tried to view PDF file generated using FOP with gv program.
> In fact, nothing has appeared.
> What has confused interpreter was the '\Count 0' string in the
> begining of PDF file (acroread processes same file normally).
> After some code exploration I've found that simply increment was
> missed [am I right?] (following is context diff):
> 
> *** PDFPages.java.orig	Fri Feb  4 15:43:09 2000
> --- PDFPages.java	Fri Feb  4 15:44:05 2000
> ***************
> *** 40,45 ****
> --- 40,46 ----
>       public void addPage(PDFPage page) {
>   	this.kids.addElement(page);
>   	page.setParent(this);
> + 	count++;
>       }
>   
>       /**
> 
> 
> My second problem is more sophisticated.
> I want FOP to generate PDF which uses TrueType fonts.
> (Of cource, I can produce XML files with metrics using freetype.
> This is NOT a problem.)
> But how can I refer to a glyph with code >255 in PDF file?
> This can be done by name, but how to make FOP use glyph names instead
> of glyph indexes?
> Are there any development efforts to support international character sets
> in FOP?
> 
> 
> --bo
> 
> 
> 
> P.S. Fortunately, I need not such things as right-to-left typesetting
> and CJK ideographs. All I need is some more characters to use in my
> document.
> 
> 
> -- 
> bo berkhaut
> http://www.syntext.com
> --