Long-term Debt - Additional Information (Detail) € in Thousands | Jun. 30, 2018USD ($) | Oct. 31, 2011 | Apr. 30, 2019USD ($) | Jun. 30, 2018USD ($) | Jul. 31, 2015USD ($) | Jul. 31, 2019USD ($) | Oct. 31, 2016USD ($) | Oct. 31, 2015USD ($) | Oct. 31, 2012USD ($) | Jul. 31, 2019EUR (€) | Oct. 31, 2018USD ($) | Oct. 31, 2018EUR (€) |
Debt Instrument [Line Items] | | | | | | | | | | | | |
Outstanding balance | | | | | | | | | | | $ 52,200,000 | |
Outstanding balance | | | | | | $ 36,111,000 | | | | | 36,111,000 | |
Term loan facility | | | | | | $ 1,348,606,000 | | | | | | |
Revolving Credit Agreement [Member] | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | |
Debt instrument, covenant compliance description | | | | | | We were in compliance with all covenants at July 31, 2019, and the amount we could borrow under the facility would not have been limited by any debt covenants. | | | | | | |
Revolving credit facility expiration | | | 2024-04 | | | | | | | | | |
Revolving credit facility | | | $ 850,000,000 | | | | | | | | | |
Credit facility, term | | | 5 years | | | | | | | | | |
Outstanding balance | | | | | | $ 0 | | | | | 52,200,000 | |
Revolving Credit Agreement [Member] | Swing Line Loans [Member] | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | |
Revolving credit facility | | | $ 75,000,000 | | | | | | | | | |
Syndicated Revolving Credit Agreement [Member] | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | |
Revolving credit facility expiration | | | 2020-02 | | | | | | | | | |
Three-year Note Purchase and Private Shelf Agreement [Member] | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | |
Debt instrument, covenant compliance description | | | | | | We were in compliance with all covenants at July 31, 2019, and the amount we could borrow would not have been limited by any debt covenants. | | | | | | |
Debt instrument, face amount | | | | | | $ 150,000,000 | | | | | | |
Period of agreement | | | | | | 3 years | | | | | | |
Maximum credit facility | | | | | | | $ 200,000,000 | $ 180,000,000 | | | | |
Maximum life of borrowings | | | | | | 12 years | | | | | | |
Maximum average life of borrowings | | | | | | 10 years | | | | | | |
Outstanding balance | | | | | | $ 36,111,000 | | | | | 36,111,000 | |
Three-year Note Purchase and Private Shelf Agreement [Member] | Minimum [Member] | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | |
Revolving credit facility expiration | | 2020-01 | | | | | | | | | | |
Three-year Note Purchase and Private Shelf Agreement [Member] | Maximum [Member] | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | |
Revolving credit facility expiration | | 2020-09 | | | | | | | | | | |
Term Loan Facility [Member] | Group of Banks [Member] | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | |
Term loan | | | $ 605,000,000 | | | | | | | | | |
Weighted average interest rate for borrowings | | | | | | 2.98% | | | | 2.98% | | |
Debt instrument, covenant compliance description | | | | | | We were in compliance with all covenants at July 31, 2019. | | | | | | |
Term Loan Due in March 2020 [Member] | Group of Banks [Member] | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | |
Term loan | | | 100,000,000 | | | | | | | | | |
Term Loan Due in September 2022 [Member] | Group of Banks [Member] | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | |
Term loan | | | 200,000,000 | | | | | | | | | |
Term Loan Due in March 2024 [Member] | Group of Banks [Member] | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | |
Term loan | | | $ 305,000,000 | | | | | | | | | |
Euro Loan, Due 2021 [Member] | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | |
Euro loan | | | | | | $ 127,396,000 | | | | | 16,967,000 | |
Euro Loan, Due 2021 [Member] | Bank of America [Member] | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | |
Weighted average interest rate for borrowings | | | | | | 1.00% | | | | 1.00% | | |
Debt instrument, covenant compliance description | | | | | | We were in compliance with all covenants at July 31, 2019. | | | | | | |
Debt instrument, face amount | € | | | | | | | | | | | | € 150,000 |
Euro loan | | | | | | $ 127,396,000 | | | | € 115,000 | | |
Senior Notes, Due 2023-2030 [Member] | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | |
Debt instrument, covenant compliance description | | | | | | We were in compliance with all covenants at July 31, 2019. | | | | | | |
Debt instrument, face amount | $ 350,000,000 | | | $ 350,000,000 | | | | | | | | |
Repayments of outstanding balance under syndicated revolving credit facility | | | | $ 315,000,000 | | | | | | | | |
Outstanding balance | | | | | | $ 350,000,000 | | | | | 350,000,000 | |
Senior Notes, Due 2023-2030 [Member] | Minimum [Member] | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | |
Revolving credit facility expiration | 2023-06 | | | | | | | | | | | |
Debt instrument, fixed interest rates | 3.71% | | | 3.71% | | | | | | | | |
Senior Notes, Due 2023-2030 [Member] | Maximum [Member] | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | |
Revolving credit facility expiration | 2030-06 | | | | | | | | | | | |
Debt instrument, fixed interest rates | 4.17% | | | 4.17% | | | | | | | | |
Note A and B [Member] | Three-year Note Purchase and Private Shelf Agreement [Member] | Minimum [Member] | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | |
Debt instrument, fixed interest rates | | | | | | 2.21% | | | | 2.21% | | |
Note C [Member] | Three-year Note Purchase and Private Shelf Agreement [Member] | Maximum [Member] | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | |
Debt instrument, fixed interest rates | | | | | | 2.56% | | | | 2.56% | | |
Senior Notes, Due 2020-2025 [Member] | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | |
Debt instrument, covenant compliance description | | | | | | We were in compliance with all covenants at July 31, 2019. | | | | | | |
Debt instrument, face amount | | | | | | | | | $ 200,000,000 | | | |
Outstanding balance | | | | | | $ 140,800,000 | | | | | 156,700,000 | |
Senior Notes, Due 2020-2025 [Member] | Minimum [Member] | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | |
Revolving credit facility expiration | | | | | | | | | 2020-07 | | | |
Debt instrument, fixed interest rates | | | | | | | | | 2.62% | | | |
Senior Notes, Due 2020-2025 [Member] | Maximum [Member] | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | |
Revolving credit facility expiration | | | | | | | | | 2025-07 | | | |
Debt instrument, fixed interest rates | | | | | | | | | 3.13% | | | |
Senior Notes, Due 2020-2027 [Member] | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | |
Outstanding balance | | | | | | 92,857,000 | | | | | 100,000,000 | |
Senior Notes, Due 2020-2027 [Member] | Senior Unsecured Notes [Member] | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | |
Debt instrument, covenant compliance description | | | | | We were in compliance with all covenants at July 31, 2019. | | | | | | | |
Outstanding balance | | | | | | $ 92,857,000 | | | | | $ 100,000,000 | |
Term loan facility | | | | | $ 100,000,000 | | | | | | | |
Senior Notes, Due 2020-2027 [Member] | Senior Unsecured Notes [Member] | Minimum [Member] | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | |
Revolving credit facility expiration | | | | | 2020-07 | | | | | | | |
Debt instrument, fixed interest rates | | | | | 2.89% | | | | | | | |
Senior Notes, Due 2020-2027 [Member] | Senior Unsecured Notes [Member] | Maximum [Member] | | | | | | | | | | | | |
Debt Instrument [Line Items] | | | | | | | | | | | | |
Revolving credit facility expiration | | | | | 2027-07 | | | | | | | |
Debt instrument, fixed interest rates | | | | | 3.19% | | | | | | | |