I am getting a Base64 encoded PDF in a Z segment of an HL7 message. Does anyone know of a way to determine how many pages are in the PDF using tcl? If there is no way to do it with a Base 64 encoded PDF, is there another encoding I can change the PDF to, that would then allow me to check the number of pages (using tcl)?