Bug 119817 properities using percentage dimension as value don't work in BIRT PDF Emitter.
Description: properities using percentage dimension as value don't work in BIRT PDF Emitter. Steps to reproduce: 1. Set percentage value to Margin/Padding 2. Preview Expected result: Percentage values work. Actual result: No effects.
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/util/PropertyUtil.java
public static int getDimensionValue(String d)
    {
    	
    	if(d==null)
    	{
    		return 0;
    	}
    	try
    	{
	    	if(d.endsWith("in") || d.endsWith("in")) 
	    	{
	    		return (int)((Float.valueOf(d.substring(0, d.length()-2)).floatValue())*72000.0f);
	    	}
	    	else if(d.endsWith("cm") || d.endsWith("CM"))  
	    	{
	    		return (int)((Float.valueOf(d.substring(0, d.length()-2)).floatValue())*72000.0f/2.54f);
	    	}
	    	else if(d.endsWith("mm") || d.endsWith("MM")) 
	    	{
	    		return (int)((Float.valueOf(d.substring(0, d.length()-2)).floatValue())*7200.0f/2.54f);
	    	}
	    	else if(d.endsWith("px") || d.endsWith("PX"))  
	    	{
	    		return (int)((Float.valueOf(d.substring(0, d.length()-2)).floatValue())/96.0f*72000.0f);
	    	}
	    	else
	    	{
	    		return (int)((Float.valueOf(d).floatValue( )));
	    	}
    	}