Large office-lease deals in the New Jersey office market made a comeback in the second quarter, as companies across sectors from food to pharmaceuticals sought space in often revamped, amenity-laden office complexes, according to several reports and brokers.

Yet, despite the flurry of signings for offices of 100,000 square feet or more, older and obsolete buildings as well as the shift toward putting more workers in less space continued to weigh down the state’s office-vacancy rate.

“You...