Skip to content

Commit

Permalink
Allow --raw for DICOM/PDF
Browse files Browse the repository at this point in the history
  • Loading branch information
malaterre committed May 3, 2024
1 parent 34f386c commit 04fe74d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Applications/Cxx/gdcmconv.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1151,6 +1151,12 @@ int main (int argc, char *argv[])
reader.SetFileName( filename.c_str() );
if( !reader.Read() )
{
gdcm::MediaStorage ms;
ms.SetFromFile( reader.GetFile() );
// handle bulk decompression '--raw' on a set of file, which may contains a PDF
if( raw && ms == gdcm::MediaStorage::EncapsulatedPDFStorage )
return change_transfersyntax(filename, outfilename, raw, explicitts, implicit, deflated, changeprivatetags);
// else
std::cerr << "Could not read (pixmap): " << filename << std::endl;
return 1;
}
Expand Down

0 comments on commit 04fe74d

Please sign in to comment.