PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: media "print"
   PostPosted: 10 Sep 2010, 20:35 
We use PD4ML to render printable versions of our forms. I've read on the forum that PD4ML ignores the "print" media type. Is there any way to coax PD4ML to process styles assigned to this media type, so we don't have to duplicate styles for "print" and proprietary "pdf" media types (in our case, they are essentially the same)

Thanks!


  Subject: Re: media "print"
   PostPosted: 10 Sep 2010, 20:40 
Ignore me; I just found PD4Constants.PD4ML_MEDIA_TYPE_PRINT

public static final java.lang.String PD4ML_MEDIA_TYPE_PRINT

"pd4ml.media.type.print". PD4ML by default interprets "screen", "all" and "pdf" CSS media types. If the parameter is set to "add", it adds to the list "print" media type. If it is set to "override", it forces PD4ML to ignore "screen", but use "print" instead.

See Also:
PD4ML.setDynamicParams(java.util.Map), Constant Field Values


  Subject: Re: media "print"
   PostPosted: 13 Sep 2010, 13:26 
Glad, you found the solution



[Reply]     [ 3 posts ] 

cron
Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share