PDF: libraries updates for smart string padding and bugfixes