Frank Niedermann | 1 Apr 2009 09:40
Favicon
Gravatar

Re: How to create version 2.0 PS files


Hi Adrian,

thanks for the link. This is my fopConfiguration.xml file:
<fop>
  <renderers>
    <renderer mime="application/postscript">
      <auto-rotate-landscape>true</auto-rotate-landscape>
      <language-level>2</language-level>
    </renderer>
  </renderers>
</fop>

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,
> 
(Continue reading)

Adrian Cumiskey | 1 Apr 2009 11:11
Gravatar

Re: How to create version 2.0 PS files

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:
> <fop>
>   <renderers>
>     <renderer mime="application/postscript">
>       <auto-rotate-landscape>true</auto-rotate-landscape>
>       <language-level>2</language-level>
>     </renderer>
>   </renderers>
> </fop>
>
> And this is how I load this configuration file:
> String fopConfiguration = "fopConfiguration.xml";
> FopFactory fopFactory = FopFactory.newInstance();
(Continue reading)

Jeremias Maerki | 1 Apr 2009 11:20
Picon
Gravatar

Re: How to create version 2.0 PS files

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:
> > <fop>
(Continue reading)

Frank Niedermann | 2 Apr 2009 10:16
Favicon
Gravatar

Re: How to create version 2.0 PS files


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:
(Continue reading)

Chris Bowditch | 2 Apr 2009 11:03
Picon
Favicon

Re: How to create version 2.0 PS files

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
(Continue reading)

Frank Niedermann | 2 Apr 2009 11:15
Favicon
Gravatar

Re: How to create version 2.0 PS files


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 
(Continue reading)

ajit kulkarni | 2 Apr 2009 11:24
Picon

Table border rendered by 0.95

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 <at> 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.

 

Attachment (PDFgeneratedByFop0.20.5.pdf): application/pdf, 1156 bytes
Attachment (PDFgeneratedByFop0.95.pdf): application/pdf, 5510 bytes

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe <at> xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help <at> xmlgraphics.apache.org
Chris Bowditch | 2 Apr 2009 13:33
Picon
Favicon

Re: How to create version 2.0 PS files

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:
>>>>>><fop>
>>>>>> <renderers>
>>>>>>   <renderer mime="application/postscript">
>>>>>>     <auto-rotate-landscape>true</auto-rotate-landscape>
>>>>>>     <language-level>2</language-level>
>>>>>>   </renderer>
>>>>>> </renderers>
>>>>>></fop>
>>>>>>
>>>>>>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-unsubscribe <at> xmlgraphics.apache.org
>>>>For additional commands, e-mail: fop-users-help <at> xmlgraphics.apache.org
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: fop-users-unsubscribe <at> xmlgraphics.apache.org
>>For additional commands, e-mail: fop-users-help <at> xmlgraphics.apache.org
>>
>>
>>
> 
> 
Frank Niedermann | 2 Apr 2009 14:35
Favicon
Gravatar

Re: How to create version 2.0 PS files


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:
>>>>>>><fop>
>>>>>>> <renderers>
>>>>>>>   <renderer mime="application/postscript">
>>>>>>>     <auto-rotate-landscape>true</auto-rotate-landscape>
>>>>>>>     <language-level>2</language-level>
>>>>>>>   </renderer>
>>>>>>> </renderers>
>>>>>>></fop>
>>>>>>>
>>>>>>>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-unsubscribe <at> xmlgraphics.apache.org
>>>>>For additional commands, e-mail: fop-users-help <at> xmlgraphics.apache.org
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: fop-users-unsubscribe <at> xmlgraphics.apache.org
>>>For additional commands, e-mail: fop-users-help <at> xmlgraphics.apache.org
>>>
>>>
>>>
>> 
>> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe <at> xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help <at> xmlgraphics.apache.org
> 
> 
> 

--

-- 
View this message in context: http://www.nabble.com/How-to-create-version-2.0-PS-files-tp22804932p22846837.html
Sent from the FOP - Users mailing list archive at Nabble.com.
bonekrusher | 2 Apr 2009 16:19
Picon
Favicon
Gravatar

Error occurred during initialization of VM


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  <at> 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  <at>  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.

Gmane