[guided]The divisor line bundle $\mathcal{O}_X(D)$ is locally generated by the meromorphic section with one simple pole along $D$. In the chart $U_a$, the divisor is defined by
\begin{align*}
f_a(p)=z_{a,n}(p),
\end{align*}
so a local frame of $\mathcal{O}_X(D)$ is denoted by $e_a=1/f_a$.
On an overlap $U_a \cap U_b$, the two defining functions define the same smooth divisor, so they differ by a nowhere-vanishing holomorphic unit:
\begin{align*}
f_a = u_{ab} f_b,
\end{align*}
where
\begin{align*}
u_{ab}: U_a \cap U_b \to \mathbb{C}^\times
\end{align*}
is holomorphic. Therefore
\begin{align*}
e_a = \frac{1}{f_a} = \frac{1}{u_{ab}f_b} = u_{ab}^{-1}e_b.
\end{align*}
Now compare the canonical bundle transition functions. Define
\begin{align*}
J_{ab}(p)=\det\left(\frac{\partial z_{a,i}}{\partial z_{b,j}}(p)\right)_{1 \le i,j \le n}.
\end{align*}
Then
\begin{align*}
\Omega_a = J_{ab}\Omega_b.
\end{align*}
The key point is that $J_{ab}$ splits into a tangential determinant and a normal factor along $D$. Since
\begin{align*}
z_{a,n}=f_a=u_{ab}f_b=u_{ab}z_{b,n},
\end{align*}
we differentiate with respect to $z_{b,j}$. For $1 \le j \le n-1$,
\begin{align*}
\frac{\partial z_{a,n}}{\partial z_{b,j}}
=
\frac{\partial u_{ab}}{\partial z_{b,j}}z_{b,n}
+
u_{ab}\frac{\partial z_{b,n}}{\partial z_{b,j}}
=
\frac{\partial u_{ab}}{\partial z_{b,j}}z_{b,n},
\end{align*}
and this restricts to $0$ on $D$ because $z_{b,n}=0$ there. For the normal direction,
\begin{align*}
\frac{\partial z_{a,n}}{\partial z_{b,n}}
=
\frac{\partial u_{ab}}{\partial z_{b,n}}z_{b,n}
+
u_{ab},
\end{align*}
so restriction to $D$ gives
\begin{align*}
\frac{\partial z_{a,n}}{\partial z_{b,n}}\bigg|_D = u_{ab}\big|_D.
\end{align*}
Thus the full Jacobian matrix is block upper triangular along $D$, with tangential block $A_{ab}$ and normal entry $u_{ab}|_D$. Hence
\begin{align*}
J_{ab}\big|_D = \det(A_{ab})\,u_{ab}\big|_D.
\end{align*}
Combining this with $e_a=u_{ab}^{-1}e_b$, we obtain
\begin{align*}
(\Omega_a\otimes e_a)\big|_D
=
(J_{ab}\Omega_b \otimes u_{ab}^{-1}e_b)\big|_D
=
\det(A_{ab})(\Omega_b\otimes e_b)\big|_D.
\end{align*}
This is exactly the same transition function as the one computed for $K_D$.[/guided]