You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: resize_test.go
    path of file: ./repos/pdfcpu/pkg/cli/test
    
    the code of the file until where you have to start completion: /*
Copyright 2023 The pdfcpu Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use 
    
func TestResizeToFormSize(t *testing.T) {
	msg := "TestResizeToPaperSize"

	inFile := filepath.Join(inDir, "test.pdf")

	// Resize to A3 and keep orientation.
	res, err := pdfcpu.ParseResizeConfig("form:A3", types.POINTS)
	if err != nil {
		t.Fatalf("%s invalid resize configuration: %v\n", msg, err)
	}

	outFile := filepath.Join(outDir, "resizeToA3.pdf")
	cmd := cli.ResizeCommand(inFile, outFile, nil, res, conf)
	if _, err := cli.Process(cmd); err != nil {
		t.Fatalf("%s %s: %v\n", msg, outFile, err)
	}

	// Resize to A4 and enforce orientation (here landscape mode).
	res, err = pdfcpu.ParseResizeConfig("form:A4L", types.POINTS)
	if err != nil {
		t.Fatalf("%s invalid resize configuration: %v\n", msg, err)
	}

	outFile = filepath.Join(outDir, "resizeToA4L.pdf")
	cmd = cli.ResizeCommand(inFile, outFile, nil, res, conf)
	if _, err := cli.Process(cmd); err != nil {
		t.Fatalf("%s %s: %v\n", msg, outFile, err)
	}
}