Fix #1171 - pdf@main wrong start