Two Manhattan court workers were busted Thursday for creating a defacto Kinkos pop-up​ ​and illegally charging the public for photocopies​ of legal documents​, officials said.

Triston Baptiste, 34, and David Washington, 48, both court aides, were hauled out of 60 Centre S​t. in ​hand​cuffs ​Thursday ​over the alleged scam.

An undercover investigator from the Manhattan District Attorney’s Office posing as a member of the public allegedly paid Baptiste $80 in cash to copy a court file April 20, 2017, the complaint states.

Another DA investigator paid Baptiste a total of $800 for file copies on two separate occasions last summer, court papers allege.

The illegal side gig was first uncovered after the ​city Law Department complained about having to pay for copies that had previously been provided for free to government agencies.

Law ​D​epartment lawyer Jeremy Feigenbaum was allegedly told by Washington that if he wanted a copy of a 3,200-page court file he’d have to pay $820 to an unnamed cohort.

Feigenbaum forked over the hefty sum in October 2016 and an investigation soon followed.

Members of the public are supposed to make their own copies on Record Room Xerox machines, which charge .25 cents a page and benefit the ​state Commission for the Blind.

As court aides, Baptiste and Washington were tasked with maintaining Manhattan Supreme Court civil files and helping obtain them for the public, officials said.

But they are not allowed to perform copying and printing services for the public.

Baptiste was arraigned on charges of petit larceny and official misconduct while Washington was hit with attempted petit larceny and official misconduct raps. They were both released from Manhattan Criminal Court without bail.

Lucian Chalfen, a spokesman for the Office of Court Administration, said the two staffers were reassigned pending an investigation. Their defense lawyers didn’t immediately return requests for comment.