|  |  | @ -73,10 +73,13 @@ public class ExamePDF { | 
			
		
	
		
		
			
				
					
					|  |  |  | 			ht.put( "servico_saude_tipo_externo", Boolean.TRUE ); |  |  |  | 			ht.put( "servico_saude_tipo_externo", Boolean.TRUE ); | 
			
		
	
		
		
			
				
					
					|  |  |  | 			ht.put( "tipo_periodico", Boolean.TRUE ); |  |  |  | 			ht.put( "tipo_periodico", Boolean.TRUE ); | 
			
		
	
		
		
			
				
					
					|  |  |  | 			ht.put( "resultado_inapto_temp", Boolean.TRUE ); |  |  |  | 			ht.put( "resultado_inapto_temp", Boolean.TRUE ); | 
			
		
	
		
		
			
				
					
					|  |  |  | 			new FileOutputStream( "C:\\Chap0804.pdf" ).write( new ExamePDF().createPDF( ht ) ); |  |  |  | 			FileOutputStream fos = new FileOutputStream( System.getProperty( "user.home" ) + "\\report.pdf" ); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			fos.write( new ExamePDF().createPDF( ht ) ); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			fos.close(); | 
			
		
	
		
		
			
				
					
					|  |  |  | 			System.out.println( "File saved." ); |  |  |  | 			System.out.println( "File saved." ); | 
			
		
	
		
		
			
				
					
					|  |  |  | 			Runtime.getRuntime().exec( "cmd.exe" ); |  |  |  | 			Process proc = Runtime.getRuntime().exec( "cmd.exe /c \"" + System.getProperty( "user.home" ) + "\\report.pdf\"" ); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | //			Runtime.getRuntime().exec( "notepad.exe" );
 |  |  |  | 			proc.waitFor(); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			new File( System.getProperty( "user.home" ) + "\\report.pdf" ).delete(); | 
			
		
	
		
		
			
				
					
					|  |  |  | 			System.out.println( "Done." ); |  |  |  | 			System.out.println( "Done." ); | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  | 		} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		catch( Exception e ) |  |  |  | 		catch( Exception e ) | 
			
		
	
	
		
		
			
				
					|  |  | @ -222,7 +225,8 @@ public class ExamePDF { | 
			
		
	
		
		
			
				
					
					|  |  |  | 				+ ( ( values.get( "tipo_mudanca_funcao" ) == null ) ? "" : "X" ) + "\n" ); |  |  |  | 				+ ( ( values.get( "tipo_mudanca_funcao" ) == null ) ? "" : "X" ) + "\n" ); | 
			
		
	
		
		
			
				
					
					|  |  |  | 			texto.append( "	        Por altera\u00e7\u00e3o das condi\u00e7\u00f5es de trabalho ................................   "  |  |  |  | 			texto.append( "	        Por altera\u00e7\u00e3o das condi\u00e7\u00f5es de trabalho ................................   "  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				+ ( ( values.get( "tipo_trabalho" ) == null ) ? "" : "X" ) + "\n" ); |  |  |  | 				+ ( ( values.get( "tipo_trabalho" ) == null ) ? "" : "X" ) + "\n" ); | 
			
		
	
		
		
			
				
					
					|  |  |  | 			texto.append( "Outro\n" ); |  |  |  | 			texto.append( "Outro  .............................................................................................   "  | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 				+ ( ( values.get( "tipo_outro" ) == null ) ? "" : "X" ) + "\n" ); | 
			
		
	
		
		
			
				
					
					|  |  |  | 			texto.append( "Especifique  "  |  |  |  | 			texto.append( "Especifique  "  | 
			
		
	
		
		
			
				
					
					|  |  |  | 				+ ( ( values.get( "tipo_outro" ) == null ) ? "" : values.get( "tipo_outro" ) ) + "" ); |  |  |  | 				+ ( ( values.get( "tipo_outro" ) == null ) ? "" : values.get( "tipo_outro" ) ) + "" ); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | 
 |