# PDF::Writer#x

**URL:** <https://www.ruby-forum.com/t/pdf-writer-x/66326>\
**Category:** Ruby\
**Created:** [August 24, 2006, 7:42pm UTC](https://www.ruby-forum.com/t/pdf-writer-x/66326 "2006-08-24T19:42:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/7feea3/32.png) [@dbf](https://www.ruby-forum.com/u/dbf)\
**Post date:** [August 24, 2006, 7:42pm UTC](https://www.ruby-forum.com/t/pdf-writer-x/66326/1 "2006-08-24T19:42:41Z")

</div>

Is there a way to get the current x position like you can get the  
current y position in PDF::Writer?

pdf = PDF::Writer.new  
pdf.y  
=\> 756.0  
pdf.x  
NoMethodError: undefined method `x’ for #PDF::Writer:0x8433f78

Thanks,

Dan

---

<div class="post-metadata">

**Author:** ![dbf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/7feea3/32.png) [@dbf](https://www.ruby-forum.com/u/dbf)\
**Post date:** [August 24, 2006, 8:26pm UTC](https://www.ruby-forum.com/t/pdf-writer-x/66326/2 "2006-08-24T20:26:49Z")

</div>

On 8/24/06, Dan F. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Is there a way to get the current x position like you can get the  
> current y position in PDF::Writer?
> 
> pdf = PDF::Writer.new  
> pdf.y  
> =\> 756.0  
> pdf.x  
> NoMethodError: undefined method `x’ for #PDF::Writer:0x8433f78

No.

PDF::Writer does not keep the current x position.

-austin
