itext - ItextPdf : get Y position -


i'm using itextpdf 5 in project

i want draw change bar element.

my method drawbar take in input y1 , y2 positions :

drawbar(float y1, float y2, pdfwriter writer){ // draw bar } 

but dont know how y position current pointer. feasible ?

you looking getverticalposition() method on pdfwriter. "current" y pass false , "next" y if line break added pass true.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -