Suppose $\kappa$ is a regular cardinal and consider the forcing notion $Fn(\kappa,2)$ consisting of finite partials functions from $\kappa$ to $\{0,1\}$. Let $G$ be $Fn(\kappa,2)$-generic over $V$.
Suppose $x\in V[G]$ is of hereditary cardinality $<\kappa.$ I need the following but I haven't been able to argue its truth:
There exists a set $J\subseteq\kappa$ with $|J|<\kappa$ and (identifying $Fn(\kappa,2)\cong Fn(J,2)\times Fn(\kappa\setminus J,2)$) filters $G_1$ and $G_2$ such that $G=G_1\times G_2$ and \begin{align} &G_1\text{ is }Fn(J,2)\text{-generic over }V\text{ and }G_2\text{ is }Fn(\kappa\setminus J,2)\text{-generic over }V[G_1];\\ &x\in V[G_1];\text{ and}\\ &V[G]=V[G_1][G_2]. \end{align}
I think I need to find a name for $x$ in $V$ of both hereditary cardinality and rank $<\kappa$, but I've been tying myself into knots over this.
Here you can see this result (pag 11-12).
For $x\in V$ you need find a nice name and use the ccc property to obtain a upper bound for the size of $J$.