Ciao,

beh.. praticamente

Codice PHP:
// step 1: creo il documento
Document document = new Document();

try {
     
// step 2: creo il writer per la scrittura su file
     
PdfWriter.getInstance(document, new FileOutputStream("C:\tuoFile.pdf"));

     
// step 3: apro il documento
     
document.open();

     
// step 4: aggiungo un oggetto graphic
.......etcetc

}catch(Exception e) {
     
e.printStackTrace();
}

// step 5: chiudo il documento
document.close(); 
invece di crearlo sulla posizione predefinita, automaticamente...
PdfWriter.getInstance(document, new FileOutputStream("C:\tuoFile.pdf"));

Vorrei essere io a specificare nome e posizione...