SetFilename( "test.dcm" ); $reader->Read(); $file = $reader->GetFile(); $header = $file->GetHeader(); $header->Clear(); $writer = new Writer(); $writer->SetFilename( "test2.dcm" ); $writer->SetFile( $file ); $writer->Write(); ?>