Printing in FOP using PageableRenderer with Unicode characters

2009-04-02 Thread Reyal

Good day,

I tried to follow this thread here.
http://www.nabble.com/Direct-Printing-and-setting-print-parameters-in-FOP-0.94-tp16747594p22087146.html

I also build my own copy from fop-trunk for my testing and
use your example. The printing looks cool but still got a warning when
using barcode and thai characters. The printed output have no barcode
and thai characters in it. What I mean is that the fonts were not applied.

Below is the code snippet:
public void printFO(File fo) throws IOException, FOPException,
TransformerException, PrintException {

// Set up DocPrintJob instance
DocPrintJob printJob = createDocPrintJob();
// Set up a custom user agent so we can supply our own renderer 
instance
FOUserAgent userAgent = fopFactory.newFOUserAgent();

PageableRenderer renderer = new PageableRenderer();
renderer.setUserAgent(userAgent);
userAgent.setRendererOverride(renderer);

// Construct FOP with desired output format
Fop fop = fopFactory.newFop(userAgent);
try {
fopFactory.setUserConfig(new File("xml/fopConf.xml"));
} catch (SAXException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

// Setup JAXP using identity transformer
TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer(); // identity

// transformer

// Setup input stream
Source src = new StreamSource(fo);

// Resulting SAX events (the generated FO) must be piped 
through to FOP
Result res = new SAXResult(fop.getDefaultHandler());

// Start XSLT transformation and FOP processing
transformer.transform(src, res);

Doc doc = new SimpleDoc(renderer, 
DocFlavor.SERVICE_FORMATTED.PAGEABLE,
null);
printJob.print(doc, null);
}

[fopConf.xml]-



  
  .
  
  
  ./
  
 
  
D:/PRINTING

  



  

  

  


When I run the above, I got the warning messages below:

Apr 3, 2009 10:27:23 AM org.apache.fop.events.LoggingEventListener
processEvent
WARNING: Font "Barcode,normal,700" not found. Substituting with
"any,normal,700".
Apr 3, 2009 10:27:23 AM org.apache.fop.events.LoggingEventListener
processEvent
WARNING: Line 1 of a paragraph overflows the available area by 29345
millipoints. (See position 697:49)
Apr 3, 2009 10:27:23 AM org.apache.fop.events.LoggingEventListener
processEvent
INFO: An fo:block  (See position 708:30) is wider than the available room in
inline-progression-dimension. Adjusting end-indent based on overconstrained
geometry rules (XSL 1.1, ch. 5.3.4)
Apr 3, 2009 10:27:23 AM org.apache.fop.events.LoggingEventListener
processEvent
INFO: An fo:block  (See position 730:30) is wider than the available room in
inline-progression-dimension. Adjusting end-indent based on overconstrained
geometry rules (XSL 1.1, ch. 5.3.4)
Apr 3, 2009 10:27:23 AM org.apache.fop.events.LoggingEventListener
processEvent
WARNING: Font "Thai,normal,400" not found. Substituting with
"any,normal,400".
Success!

Any help?

-
Rey
-- 
View this message in context: 
http://www.nabble.com/Printing-in-FOP-using-PageableRenderer-with-Unicode-characters-tp22860872p22860872.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Error occurred during initialization of VM

2009-04-02 Thread bonekrusher

"Try running with decreased -Xmx settings. If lower values do work,  
then that would seem to point to memory restrictions imposed by the  
OS... " - thats it - Because If I lower the memory settings on Xmx I get
a Heap Error with large files.

Thanks - you're the best

Phil


Andreas Delmelle-2 wrote:
> 
> On 02 Apr 2009, at 21:27, bonekrusher wrote:
> 
>>
>> Ok, see attached.
>>
>> http://www.nabble.com/file/p22855298/Windows%2BTask%2BManager.png
> 
> OK, that should be no problem whatsoever, unless (see my follow-up  
> mail).
> 
> Try running with decreased -Xmx settings. If lower values do work,  
> then that would seem to point to memory restrictions imposed by the  
> OS...
> 
> 
> Regards
> 
> Andreas
> 
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Error-occurred-during-initialization-of-VM-tp22849015p22855636.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Error occurred during initialization of VM

2009-04-02 Thread Andreas Delmelle

On 02 Apr 2009, at 21:27, bonekrusher wrote:



Ok, see attached.

http://www.nabble.com/file/p22855298/Windows%2BTask%2BManager.png


OK, that should be no problem whatsoever, unless (see my follow-up  
mail).


Try running with decreased -Xmx settings. If lower values do work,  
then that would seem to point to memory restrictions imposed by the  
OS...



Regards

Andreas

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Error occurred during initialization of VM

2009-04-02 Thread bonekrusher

Ok, see attached.

http://www.nabble.com/file/p22855298/Windows%2BTask%2BManager.png 

Andreas Delmelle-2 wrote:
> 
> On 02 Apr 2009, at 20:54, bonekrusher wrote:
> 
>>
>> Thanks - I am running windows - The problem is that Java doenst even  
>> start -
>> so i cant see what is happening in task manager
> 
> 
> Oh, what I meant was: see if you have enough memory to begin with. Is  
> there 1056MB free RAM available, or are you perhaps already using 80%  
> before Java is even started? If yes, then that would explain why  
> java.exe cannot allocate enough memory for the heap.
> 
> 
> HTH!
> 
> Andreas
> 
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Error-occurred-during-initialization-of-VM-tp22849015p22855298.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Error occurred during initialization of VM

2009-04-02 Thread Andreas Delmelle

On 02 Apr 2009, at 21:03, Andreas Delmelle wrote:


On 02 Apr 2009, at 20:54, bonekrusher wrote:



Thanks - I am running windows - The problem is that Java doenst  
even start -

so i cant see what is happening in task manager



Oh, what I meant was: see if you have enough memory to begin with.  
Is there 1056MB free RAM available, or are you perhaps already using  
80% before Java is even started? If yes, then that would explain why  
java.exe cannot allocate enough memory for the heap.


Just thought of another possibility: in server environments, the RAM  
on one single machine is typically shared by different users. Maybe a  
policy is enabled on that particular machine that would place  
restrictions on the amount of memory that can be used by one account  
at any given time?


I'm suddenly realizing that my earlier remark is not correct. It would  
only cause a lot of swapping, but should not lead to JVM  
initialization errors, IIC...


Regards

Andreas

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Error occurred during initialization of VM

2009-04-02 Thread Andreas Delmelle

On 02 Apr 2009, at 20:54, bonekrusher wrote:



Thanks - I am running windows - The problem is that Java doenst even  
start -

so i cant see what is happening in task manager



Oh, what I meant was: see if you have enough memory to begin with. Is  
there 1056MB free RAM available, or are you perhaps already using 80%  
before Java is even started? If yes, then that would explain why  
java.exe cannot allocate enough memory for the heap.



HTH!

Andreas

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Error occurred during initialization of VM

2009-04-02 Thread bonekrusher

Thanks - I am running windows - The problem is that Java doenst even start -
so i cant see what is happening in task manager



Andreas Delmelle-2 wrote:
> 
> On 02 Apr 2009, at 20:29, bonekrusher wrote:
> 
> Hi Phil
> 
>> Andreas, How can I check whether there is enough *free* memory at JVM
>> startup time?
> 
> That depends on the OS. If it is Windows, then checking the Task  
> Manager could already give a clue. On Mac OS X, the tool would be the  
> Activity Monitor. Not sure what the equivalent is for Linux, Solaris,  
> etc.
> 
> 
> Cheers
> 
> Andreas
> 
> 
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Error-occurred-during-initialization-of-VM-tp22849015p22854740.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Error occurred during initialization of VM

2009-04-02 Thread Andreas Delmelle

On 02 Apr 2009, at 20:29, bonekrusher wrote:

Hi Phil


Andreas, How can I check whether there is enough *free* memory at JVM
startup time?


That depends on the OS. If it is Windows, then checking the Task  
Manager could already give a clue. On Mac OS X, the tool would be the  
Activity Monitor. Not sure what the equivalent is for Linux, Solaris,  
etc.



Cheers

Andreas


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Error occurred during initialization of VM

2009-04-02 Thread bonekrusher

Thanks... I am running from the command line. We are in the process of
upgrading to 95 - in the mean time I have 18 tech writers using 0.025 - 

Andreas, How can I check whether there is enough *free* memory at JVM
startup time?

Thanks,
 
-- 
View this message in context: 
http://www.nabble.com/Error-occurred-during-initialization-of-VM-tp22849015p22854270.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Table border rendered by 0.95

2009-04-02 Thread Andreas Delmelle

On 02 Apr 2009, at 11:24, ajit kulkarni wrote:


I am in the process of upgrading my FOP from 0.20.5 to 0.95.

While doing so I am coming across a wired problem. I am using  
"solid" border of "0.2mm" thickness on table cells. But it is not  
getting rendered as fine as what it used to in 0.20.5.


I am attaching 2 pdf files rendered by FOP 0.20.5 and 0.95.

Kindly look both pdf files @ 50% zoom for clear understanding of the  
problem, the borders looks like if they are having different  
thickness.


I see differences too, but the file produced by 0.95 (according to the  
file name) actually shows much finer borders at a zoom of 50%. I do  
know that borders are drawn differently in 0.95. Does the difference  
persist if you send the document to the printer? If not, then check if  
the viewer has 'Smooth Line Art' enabled (for Adobe Reader, this  
option is found in the preferences).




Please let me know the cause of the same.


Another possible cause (long shot) could be that FOP 0.95 supports  
border-collapse="collapse". Try forcing the table to use border- 
collapse="separate" and see if that produces a different effect.



HTH!

Andreas

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Error occurred during initialization of VM

2009-04-02 Thread Andreas Delmelle

On 02 Apr 2009, at 16:19, bonekrusher wrote:

Hi Phil



Machine 2 (doesnt work) Stats:
Pentium Dual CPU E2180 @ 2.00 GHz
2.00 GHz, 3.24 GB of RAM
Java 1.6.0_11

As you can see I have enough memory in both machines. The only  
difference is
Machine 1 has the JDK. Could this be the issue or its a  
configuration issue.


Not really sure, but the stats above (most likely) only reflect the  
amount of physical RAM available. Any other processes running on that  
machine that could be eating part of that 3.84GB?
IOW: Can you check whether there is enough *free* memory at JVM  
startup time?



Regards

Andreas

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: Error occurred during initialization of VM

2009-04-02 Thread Sam Fuqua
Is there any reason why you're using .025?  The latest release is 0.95.
Also, can you give a bit more detail of how you're using it?  Is it
stand-alone?  Are you using your own scripts?  Is it a servlet?  What's your
platform?

On Thu, Apr 2, 2009 at 10:19 AM, bonekrusher  wrote:

>
> Hi All,
>
> This question is probably Java issue, but I want to run by this list first.
> I am running FOP 0.025 on 2 machines. Because the XML files are very large
> I
> set the heap size to Xmx1056mb. On one machine it works and another I get
> this error:
>
> Error occurred during initialization of VM
> Could not reserve enough space for object heap
> Could not create the Java virtual machine.
>
> Machine 1 (works) stats:
> Intel Duel Core CPU @2.10GHz/2.07 GHz
> 2.99 GB Ram
> Java 1.6.0_11
> jdk 1.6.0_11
>
> Machine 2 (doesnt work) Stats:
> Pentium Dual CPU E2180 @ 2.00 GHz
> 2.00 GHz, 3.24 GB of RAM
> Java 1.6.0_11
>
> As you can see I have enough memory in both machines. The only difference
> is
> Machine 1 has the JDK. Could this be the issue or its a configuration
> issue.
>
> Any suggestions?
>
> Thanks,
>
> --
> View this message in context:
> http://www.nabble.com/Error-occurred-during-initialization-of-VM-tp22849015p22849015.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>


-- 
Sam Fuqua
ΣΝ ΘΗ 454


Re: How to create version 2.0 PS files

2009-04-02 Thread Chris Bowditch

Frank Niedermann wrote:


Hi Chris,


Hi Frank,



thanks for clarification now I understand.

I gave the resulting PostScript file to our printer manufacturer (Ricoh) and
they told me that the printers are returning a configuration error:

OFFENDING COMMAND: setpagedevice
ERRORINFO: Key = /PageSize Value = arraytpe
STACK: dicttype


That error seems to indicate that the Printer doesn't like the Page Size 
specified. Make sure the dimensions assigned to your simple page master 
match the paper size supported by the Printer, i.e. if the Printer has a 
Letter sized paper source but you specified A4 dimensions 297mmx210mm in 
the simple-page-master then this cause could this type of error.




We plan to replace an old LaTeX environment with Apache FOP, and the
PostScript files generated by LaTeX print without an error on the printers.

Do I need the setpagedevice in the PostScript file and if not, is there a
way to disable the generation of this command in FOP?


Regards,

Chris





-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Error occurred during initialization of VM

2009-04-02 Thread bonekrusher

Hi All, 

This question is probably Java issue, but I want to run by this list first.
I am running FOP 0.025 on 2 machines. Because the XML files are very large I
set the heap size to Xmx1056mb. On one machine it works and another I get
this error:

Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

Machine 1 (works) stats:
Intel Duel Core CPU @2.10GHz/2.07 GHz
2.99 GB Ram
Java 1.6.0_11
jdk 1.6.0_11

Machine 2 (doesnt work) Stats:
Pentium Dual CPU E2180 @ 2.00 GHz
2.00 GHz, 3.24 GB of RAM 
Java 1.6.0_11

As you can see I have enough memory in both machines. The only difference is
Machine 1 has the JDK. Could this be the issue or its a configuration issue. 

Any suggestions?

Thanks,

-- 
View this message in context: 
http://www.nabble.com/Error-occurred-during-initialization-of-VM-tp22849015p22849015.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: How to create version 2.0 PS files

2009-04-02 Thread Frank Niedermann

Hi Chris,

thanks for clarification now I understand.

I gave the resulting PostScript file to our printer manufacturer (Ricoh) and
they told me that the printers are returning a configuration error:

OFFENDING COMMAND: setpagedevice
ERRORINFO: Key = /PageSize Value = arraytpe
STACK: dicttype

We plan to replace an old LaTeX environment with Apache FOP, and the
PostScript files generated by LaTeX print without an error on the printers.

Do I need the setpagedevice in the PostScript file and if not, is there a
way to disable the generation of this command in FOP?

Thanks,
  Frank


cbowditch wrote:
> 
> Frank Niedermann wrote:
> 
> Hi Frank,
> 
>> Hi Chris,
>> 
>> yes and I already used those settings within FOP but it didn't work.
>> 
>> Then Jeremias mentioned that those settings don't affect PostScript
>> version and I should use the DSC comment %%LanguageLevel: 2 instead.
> 
> What Jeremias said was that the LanguageLevel setting doesn't affect the 
> DSC comment version in use. It only affects the %%LanguageLevel comment.
> 
>> 
>> I don't see how to set this commend on the page you mentioned,
>> or am I just overseeing the relevant part?
> 
> If you set the Language Level in fop.xconf file then %%LanguageLevel 
> comment in Postscript will change to reflect that but the DSC comment 
> version will not change.
> 
> Regards,
> 
> Chris
> 
>> 
>> Thanks,
>>   Frank
>> 
>> 
>> cbowditch wrote:
>> 
>>>Frank Niedermann wrote:
>>>
>>>Hi Frank,
>>>
>>>
Hi Jeremias,

do you have an example on how to set the LanguageLevel within FOP?
>>>
>>>Adrian already sent you a link that shows you how to specify Language 
>>>Level of 2 for Postscript generation:
>>>
>>>http://xmlgraphics.apache.org/fop/0.95/output.html#ps-configuration
>>>
>>>This setting goes into fop.xconf file and you have to tell FOP to load 
>>>the file using -c option from command line.
>>>
>>>Regards,
>>>
>>>Chris
>>>
>>>
I found a wiki page [1] about PostScript configuration within FOP but
on the bottom it says this:

"Some people will only add a DSC comment into the PostScript file
instead of the actual media selection code. This comment will then
be expanded later."

Thanks,
  Frank

[1] http://wiki.apache.org/xmlgraphics-fop/ExtensionsForPostScript


Jeremias Maerki-2 wrote:


>Hi Adrian & Frank,
>
>please note that "%!PS-Adobe-3.0" does not refer to the PostScript
>language level but to the version of the DSC specification which is
3.0.
>The language level is given by the following DSC comment:
>
>%%LanguageLevel: 2
>
>So this is no bug.
>
>On 01.04.2009 11:11:30 Adrian Cumiskey wrote:
>
>
>>Hi Frank,
>>
>>I don't think you are missing anything, I think it may be a bug. 
Having 
>>stepped through the code, "%!PS-Adobe-3.0" is always written as the 
>>first line of the header regardless of the language level.  Could you 
>>please send us a bug report at 
>>https://issues.apache.org/bugzilla/enter_bug.cgi?product=Fop and
someone 
>>will take a look at the problem.  I'll try to find some time later
this 
>>week.
>>
>>Thanks,
>>
>>Adrian.
>>
>>Frank Niedermann wrote:
>>
>>
>>>Hi Adrian,
>>>
>>>thanks for the link. This is my fopConfiguration.xml file:
>>>
>>> 
>>>   
>>> true
>>> 2
>>>   
>>> 
>>>
>>>
>>>And this is how I load this configuration file:
>>>String fopConfiguration = "fopConfiguration.xml";
>>>FopFactory fopFactory = FopFactory.newInstance();
>>>fopFactory.setUserConfig(new File(fopConfiguration));
>>>FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
>>>
>>>But it still creates version 3 PS-files (I checked the header).
>>>
>>>Am I missing something else?
>>>
>>>Thanks,
>>> Frank
>>>
>>>
>>>Adrian Cumiskey-2 wrote:
>>> 
>>>
>>>
Hi Frank,

Yes, you can do this with the language-level configuration option
(see 
http://xmlgraphics.apache.org/fop/0.95/output.html#ps-configuration).

Adrian.

Frank Niedermann wrote:
   


>Hi,
>
>we are using Apache FOP to create PS files which should be printed
on
>>
>>a
>>
>>
>HP-Unix machine.
>
>Unfortunately this machine only supports version 2.0 PS files:
>%!PS-Adobe-2.0
>
>Apache FOP creates version 3.0 PS files which are ignored by the
>>
>>HP-Unix
>>
>>
>print system.
>
>Is there a way to tell FOP to generate version 2.0 PS files?
>
>Thanks,
> Frank
>
> 
> 
>
>
>
>Jeremias Maerki
>
>
>-
>To unsubscribe, e-mail: fop

Re: How to create version 2.0 PS files

2009-04-02 Thread Chris Bowditch

Frank Niedermann wrote:

Hi Frank,


Hi Chris,

yes and I already used those settings within FOP but it didn't work.

Then Jeremias mentioned that those settings don't affect PostScript
version and I should use the DSC comment %%LanguageLevel: 2 instead.


What Jeremias said was that the LanguageLevel setting doesn't affect the 
DSC comment version in use. It only affects the %%LanguageLevel comment.




I don't see how to set this commend on the page you mentioned,
or am I just overseeing the relevant part?


If you set the Language Level in fop.xconf file then %%LanguageLevel 
comment in Postscript will change to reflect that but the DSC comment 
version will not change.


Regards,

Chris



Thanks,
  Frank


cbowditch wrote:


Frank Niedermann wrote:

Hi Frank,



Hi Jeremias,

do you have an example on how to set the LanguageLevel within FOP?


Adrian already sent you a link that shows you how to specify Language 
Level of 2 for Postscript generation:


http://xmlgraphics.apache.org/fop/0.95/output.html#ps-configuration

This setting goes into fop.xconf file and you have to tell FOP to load 
the file using -c option from command line.


Regards,

Chris



I found a wiki page [1] about PostScript configuration within FOP but
on the bottom it says this:

"Some people will only add a DSC comment into the PostScript file
instead of the actual media selection code. This comment will then
be expanded later."

Thanks,
 Frank

[1] http://wiki.apache.org/xmlgraphics-fop/ExtensionsForPostScript


Jeremias Maerki-2 wrote:



Hi Adrian & Frank,

please note that "%!PS-Adobe-3.0" does not refer to the PostScript
language level but to the version of the DSC specification which is 3.0.
The language level is given by the following DSC comment:

%%LanguageLevel: 2

So this is no bug.

On 01.04.2009 11:11:30 Adrian Cumiskey wrote:



Hi Frank,

I don't think you are missing anything, I think it may be a bug.  Having 
stepped through the code, "%!PS-Adobe-3.0" is always written as the 
first line of the header regardless of the language level.  Could you 
please send us a bug report at 
https://issues.apache.org/bugzilla/enter_bug.cgi?product=Fop and someone 
will take a look at the problem.  I'll try to find some time later this 
week.


Thanks,

Adrian.

Frank Niedermann wrote:



Hi Adrian,

thanks for the link. This is my fopConfiguration.xml file:


  
true
2
  



And this is how I load this configuration file:
String fopConfiguration = "fopConfiguration.xml";
FopFactory fopFactory = FopFactory.newInstance();
fopFactory.setUserConfig(new File(fopConfiguration));
FOUserAgent foUserAgent = fopFactory.newFOUserAgent();

But it still creates version 3 PS-files (I checked the header).

Am I missing something else?

Thanks,
Frank


Adrian Cumiskey-2 wrote:




Hi Frank,

Yes, you can do this with the language-level configuration option (see 
http://xmlgraphics.apache.org/fop/0.95/output.html#ps-configuration).


Adrian.

Frank Niedermann wrote:
  




Hi,

we are using Apache FOP to create PS files which should be printed on


a



HP-Unix machine.

Unfortunately this machine only supports version 2.0 PS files:
%!PS-Adobe-2.0

Apache FOP creates version 3.0 PS files which are ignored by the


HP-Unix



print system.

Is there a way to tell FOP to generate version 2.0 PS files?

Thanks,
Frank







Jeremias Maerki


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org










-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org











-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Table border rendered by 0.95

2009-04-02 Thread ajit kulkarni
Hi,



I am in the process of upgrading my FOP from 0.20.5 to 0.95.



While doing so I am coming across a wired problem. I am using "solid" border
of "0.2mm" thickness on table cells. But it is not getting rendered as fine
as what it used to in 0.20.5.



I am attaching 2 pdf files rendered by FOP 0.20.5 and 0.95.



Kindly look both pdf files @ 50% zoom for clear understanding of the
problem, the borders looks like if they are having different thickness.



Please let me know the cause of the same.



Any help will be appreciated.







--Thanks and Regards,

Ajit Kulkarni.




PDFgeneratedByFop0.20.5.pdf
Description: Adobe PDF document


PDFgeneratedByFop0.95.pdf
Description: Adobe PDF document

-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Re: How to create version 2.0 PS files

2009-04-02 Thread Frank Niedermann

Hi Chris,

yes and I already used those settings within FOP but it didn't work.

Then Jeremias mentioned that those settings don't affect PostScript
version and I should use the DSC comment %%LanguageLevel: 2 instead.

I don't see how to set this commend on the page you mentioned,
or am I just overseeing the relevant part?

Thanks,
  Frank


cbowditch wrote:
> 
> Frank Niedermann wrote:
> 
> Hi Frank,
> 
>> Hi Jeremias,
>> 
>> do you have an example on how to set the LanguageLevel within FOP?
> 
> Adrian already sent you a link that shows you how to specify Language 
> Level of 2 for Postscript generation:
> 
> http://xmlgraphics.apache.org/fop/0.95/output.html#ps-configuration
> 
> This setting goes into fop.xconf file and you have to tell FOP to load 
> the file using -c option from command line.
> 
> Regards,
> 
> Chris
> 
>> 
>> I found a wiki page [1] about PostScript configuration within FOP but
>> on the bottom it says this:
>> 
>> "Some people will only add a DSC comment into the PostScript file
>> instead of the actual media selection code. This comment will then
>> be expanded later."
>> 
>> Thanks,
>>   Frank
>> 
>> [1] http://wiki.apache.org/xmlgraphics-fop/ExtensionsForPostScript
>> 
>> 
>> Jeremias Maerki-2 wrote:
>> 
>>>Hi Adrian & Frank,
>>>
>>>please note that "%!PS-Adobe-3.0" does not refer to the PostScript
>>>language level but to the version of the DSC specification which is 3.0.
>>>The language level is given by the following DSC comment:
>>>
>>>%%LanguageLevel: 2
>>>
>>>So this is no bug.
>>>
>>>On 01.04.2009 11:11:30 Adrian Cumiskey wrote:
>>>
Hi Frank,

I don't think you are missing anything, I think it may be a bug.  Having 
stepped through the code, "%!PS-Adobe-3.0" is always written as the 
first line of the header regardless of the language level.  Could you 
please send us a bug report at 
https://issues.apache.org/bugzilla/enter_bug.cgi?product=Fop and someone 
will take a look at the problem.  I'll try to find some time later this 
week.

Thanks,

Adrian.

Frank Niedermann wrote:

>Hi Adrian,
>
>thanks for the link. This is my fopConfiguration.xml file:
>
>  
>
>  true
>  2
>
>  
>
>
>And this is how I load this configuration file:
>String fopConfiguration = "fopConfiguration.xml";
>FopFactory fopFactory = FopFactory.newInstance();
>fopFactory.setUserConfig(new File(fopConfiguration));
>FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
>
>But it still creates version 3 PS-files (I checked the header).
>
>Am I missing something else?
>
>Thanks,
>  Frank
>
>
>Adrian Cumiskey-2 wrote:
>  
>
>>Hi Frank,
>>
>>Yes, you can do this with the language-level configuration option (see 
>>http://xmlgraphics.apache.org/fop/0.95/output.html#ps-configuration).
>>
>>Adrian.
>>
>>Frank Niedermann wrote:
>>
>>
>>>Hi,
>>>
>>>we are using Apache FOP to create PS files which should be printed on

a

>>>HP-Unix machine.
>>>
>>>Unfortunately this machine only supports version 2.0 PS files:
>>>%!PS-Adobe-2.0
>>>
>>>Apache FOP creates version 3.0 PS files which are ignored by the

HP-Unix

>>>print system.
>>>
>>>Is there a way to tell FOP to generate version 2.0 PS files?
>>>
>>>Thanks,
>>>  Frank
>>>
>>>  
>>>  
>>>
>>>
>>>
>>>Jeremias Maerki
>>>
>>>
>>>-
>>>To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
>>>For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>>>
>>>
>>>
>> 
>> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-create-version-2.0-PS-files-tp22804932p22843908.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: How to create version 2.0 PS files

2009-04-02 Thread Chris Bowditch

Frank Niedermann wrote:

Hi Frank,


Hi Jeremias,

do you have an example on how to set the LanguageLevel within FOP?


Adrian already sent you a link that shows you how to specify Language 
Level of 2 for Postscript generation:


http://xmlgraphics.apache.org/fop/0.95/output.html#ps-configuration

This setting goes into fop.xconf file and you have to tell FOP to load 
the file using -c option from command line.


Regards,

Chris



I found a wiki page [1] about PostScript configuration within FOP but
on the bottom it says this:

"Some people will only add a DSC comment into the PostScript file
instead of the actual media selection code. This comment will then
be expanded later."

Thanks,
  Frank

[1] http://wiki.apache.org/xmlgraphics-fop/ExtensionsForPostScript


Jeremias Maerki-2 wrote:


Hi Adrian & Frank,

please note that "%!PS-Adobe-3.0" does not refer to the PostScript
language level but to the version of the DSC specification which is 3.0.
The language level is given by the following DSC comment:

%%LanguageLevel: 2

So this is no bug.

On 01.04.2009 11:11:30 Adrian Cumiskey wrote:


Hi Frank,

I don't think you are missing anything, I think it may be a bug.  Having 
stepped through the code, "%!PS-Adobe-3.0" is always written as the 
first line of the header regardless of the language level.  Could you 
please send us a bug report at 
https://issues.apache.org/bugzilla/enter_bug.cgi?product=Fop and someone 
will take a look at the problem.  I'll try to find some time later this 
week.


Thanks,

Adrian.

Frank Niedermann wrote:


Hi Adrian,

thanks for the link. This is my fopConfiguration.xml file:

 
   
 true
 2
   
 


And this is how I load this configuration file:
String fopConfiguration = "fopConfiguration.xml";
FopFactory fopFactory = FopFactory.newInstance();
fopFactory.setUserConfig(new File(fopConfiguration));
FOUserAgent foUserAgent = fopFactory.newFOUserAgent();

But it still creates version 3 PS-files (I checked the header).

Am I missing something else?

Thanks,
 Frank


Adrian Cumiskey-2 wrote:
 


Hi Frank,

Yes, you can do this with the language-level configuration option (see 
http://xmlgraphics.apache.org/fop/0.95/output.html#ps-configuration).


Adrian.

Frank Niedermann wrote:
   


Hi,

we are using Apache FOP to create PS files which should be printed on


a


HP-Unix machine.

Unfortunately this machine only supports version 2.0 PS files:
%!PS-Adobe-2.0

Apache FOP creates version 3.0 PS files which are ignored by the


HP-Unix


print system.

Is there a way to tell FOP to generate version 2.0 PS files?

Thanks,
 Frank

 
 




Jeremias Maerki


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org











-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: How to create version 2.0 PS files

2009-04-02 Thread Frank Niedermann

Hi Jeremias,

do you have an example on how to set the LanguageLevel within FOP?

I found a wiki page [1] about PostScript configuration within FOP but
on the bottom it says this:

"Some people will only add a DSC comment into the PostScript file
instead of the actual media selection code. This comment will then
be expanded later."

Thanks,
  Frank

[1] http://wiki.apache.org/xmlgraphics-fop/ExtensionsForPostScript


Jeremias Maerki-2 wrote:
> 
> Hi Adrian & Frank,
> 
> please note that "%!PS-Adobe-3.0" does not refer to the PostScript
> language level but to the version of the DSC specification which is 3.0.
> The language level is given by the following DSC comment:
> 
> %%LanguageLevel: 2
> 
> So this is no bug.
> 
> On 01.04.2009 11:11:30 Adrian Cumiskey wrote:
>> Hi Frank,
>> 
>> I don't think you are missing anything, I think it may be a bug.  Having 
>> stepped through the code, "%!PS-Adobe-3.0" is always written as the 
>> first line of the header regardless of the language level.  Could you 
>> please send us a bug report at 
>> https://issues.apache.org/bugzilla/enter_bug.cgi?product=Fop and someone 
>> will take a look at the problem.  I'll try to find some time later this 
>> week.
>> 
>> Thanks,
>> 
>> Adrian.
>> 
>> Frank Niedermann wrote:
>> > Hi Adrian,
>> >
>> > thanks for the link. This is my fopConfiguration.xml file:
>> > 
>> >   
>> > 
>> >   true
>> >   2
>> > 
>> >   
>> > 
>> >
>> > And this is how I load this configuration file:
>> > String fopConfiguration = "fopConfiguration.xml";
>> > FopFactory fopFactory = FopFactory.newInstance();
>> > fopFactory.setUserConfig(new File(fopConfiguration));
>> > FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
>> >
>> > But it still creates version 3 PS-files (I checked the header).
>> >
>> > Am I missing something else?
>> >
>> > Thanks,
>> >   Frank
>> >
>> >
>> > Adrian Cumiskey-2 wrote:
>> >   
>> >> Hi Frank,
>> >>
>> >> Yes, you can do this with the language-level configuration option (see 
>> >> http://xmlgraphics.apache.org/fop/0.95/output.html#ps-configuration).
>> >>
>> >> Adrian.
>> >>
>> >> Frank Niedermann wrote:
>> >> 
>> >>> Hi,
>> >>>
>> >>> we are using Apache FOP to create PS files which should be printed on
>> a
>> >>> HP-Unix machine.
>> >>>
>> >>> Unfortunately this machine only supports version 2.0 PS files:
>> >>> %!PS-Adobe-2.0
>> >>>
>> >>> Apache FOP creates version 3.0 PS files which are ignored by the
>> HP-Unix
>> >>> print system.
>> >>>
>> >>> Is there a way to tell FOP to generate version 2.0 PS files?
>> >>>
>> >>> Thanks,
>> >>>   Frank
>> >>>
>> >>>   
>> >>>   
> 
> 
> 
> Jeremias Maerki
> 
> 
> -
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-create-version-2.0-PS-files-tp22804932p22843062.html
Sent from the FOP - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org