Dustin Hoffman apologized Wednesday after a woman came forward to accuse the actor of sexually harassing her when she was a 17-year-old production assistant.

Writing for The Hollywood Reporter, Anna Graham Hunter, now 49, said she was interning as a production assistant on the 1985 TV movie adaption of “Death of a Salesman” when the alleged harassment occurred.

Ms. Hunter reprinted mail correspondence with her sister in London detailing the alleged harassment that occurred over five weeks. She said she initially laughed off Mr. Hoffman’s advances, but later explicitly and repeatedly told him to stop.

“And yes, I loved the attention from Dustin Hoffman. Until I didn’t,” she wrote.

“One morning I went to his dressing room to take his breakfast order; he looked at me and grinned, taking his time,” she recalled. “Then he said, ‘I’ll have a hard-boiled egg … and a soft-boiled clitoris.’ His entourage burst out laughing. I left, speechless. Then I went to the bathroom and cried.”

“Today, when I was walking Dustin to his limo, he felt my ass four times. I hit him each time, hard, and told him he was a dirty old man,” she wrote. “He took off his hat and pointed to his head (shaved for the part) and said, ‘No, I’m a dirty young man, I have a full head of hair.’”

Ms. Hunter said she told the actor that she didn’t appreciate his behavior, to which he allegedly apologized and promised to stop. She said the touching did stop but that the crude sexual jokes continued. She said her female supervisor at the time encouraged her to gain a sense of humor.

“I laugh at most things because I don’t want to appear hard-nosed, but sometimes I just can’t,” she wrote to her sister. “No one is 100 percent good or bad. Dustin’s a pig, but I like him a lot.”

Ms. Hunter wrote Wednesday about the internal struggle she felt working for a man she deeply respected onscreen while detesting his behavior in real life.

“Whenever I talk about this, I sense that my listeners want a victim and a villain,” she wrote. “And I wish my feelings were as clear as theirs. I would be more comfortable if I felt nothing but revulsion for a man who had power over me and abused it. But I still like watching him onscreen.”

“At 49, I understand what Dustin Hoffman did as it fits into the larger pattern of what women experience in Hollywood and everywhere. He was a predator, I was a child, and this was sexual harassment. As to how it fits into my own pattern, I imagine I’ll be figuring that out for years to come,” she concluded.

In a statement to The Hollywood Reporter, Mr. Hoffman responded, “I have the utmost respect for women and feel terrible that anything I might have done could have put her in an uncomfortable situation. I am sorry. It is not reflective of who I am.”