Padding options for LayoutLM processor

I can’t find documentation for the LayoutLMV3 processor.

The tutorial I’m using as a template just has max_length as the argument. The only other options, which I determined by experimentation is ‘longest’ and ‘do_not_pad’.

2 questions:

  1. Is there any reason why I shouldn’t use ‘longest’ or ‘do_not_pad’?
  2. Where is the documentation on the LayoutLMV3 processor? Specifically on these arguments:
encoding = processor(images, words, boxes=boxes, word_labels=word_labels,
                       truncation=True, padding="max_length")