Pharmaceutical dosage forms with external or internal features to complicate counterfeiting and support authentication are described. External features include surface texture, surface markings defined by patterns of physical or chemical markers, or complex interlocking shapes. Internal features also include physical or chemical markers in two or three-dimensional patterns observable after sectioning, or after breaking along designed fracture lines. Methods of manufacture using solid freeform fabrication (SFF) techniques such as three-dimensional printing (3DP) are described. Method of authentication using dosage form patterns and batch codes are also described.