I have these two projectile-motion equations:
$$ vt\cos(\theta)=d $$
$$0=h+vt\sin(\theta)+\frac12at^2 $$
Is it possible to derive an expression for $\theta$ in terms of at most $d, v, h, a$ but not $t?$ The closest I've gotten is $$ t = \frac{d}{\cos(\theta)} $$ so $$ 0=h + \frac{dv\sin(\theta)}{v\cos(\theta)} + \frac12a\frac{d^2}{v^2 \cos^2(\theta)}\\ 0=h + d\tan(\theta) + \frac12a\frac{d^2}{v^2 \cos^2(\theta)}.$$
https://en.wikipedia.org/wiki/Projectile_motion#Angle_θ_required_to_hit_coordinate_(x,_y) contains a related result, but no derivation is given, and I am not sure how that result was attained.
Let $T=\tan\theta$, so your equation becomes $$0=h+dT+\frac{ad^2}{2v^2}(1+T^2)$$
You can solve this quadratic equation to get $\tan\theta$ in terms of $h,d,a$ and $v$