Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images seem to start some where at the end of the page #125

Closed
anexiole opened this Issue Jun 24, 2010 · 3 comments

Comments

Projects
None yet
3 participants
@anexiole
Copy link

anexiole commented Jun 24, 2010

I have the following source code. Run it. Observe that the images consistently

  1. get placed at the bottom of pages
  2. cause a new page to be made for each image

------------- Start ------------------------------------------
require 'prawn'
require 'open-uri'

Prawn::Document.generate("test_basic_images.pdf", :page_layout => :landscape) do
image open( 'http://ccinsider.comedycentral.com/files/2010/05/blog_futurama_375x75.jpg')
move_down(10)

text 'This is a title'

move_down(10)

details = Array.new()
details.push( [ 'Category: ' +  ' t-shirts' ])
details.push(
  [ 'Sub category: threadless' ]
)

details.push( ['Description:  Nice white t shirts suitable for company promo.' ] )

details.push( [ 'Location: Victoria '  ] )
details.push( [ 'Contact: Gordon' ] )

move_down(5)
text 'Please confirm all details with the seller.'
move_down(5)
text 'Printed on ' + Time.now.strftime("%I:%M%p %Y-%m-%d")

image open 'http://4.bp.blogspot.com/_hY0FQwcl9tM/S1iXpaBY5wI/AAAAAAAAC2o/HbFH9u8ewwY/s400/1958_corum_chinesehat.jpg'
image open 'http://3.bp.blogspot.com/_hY0FQwcl9tM/S1iYorX6VRI/AAAAAAAAC2w/5MYCxGg9IxY/s400/1960-admirals-cup.jpg'
image open 'http://cache.gawker.com/assets/images/4/2010/01/500x_template_10.jpg'

end

------------End -------------------------------------------------

-- Also advised by Gregory Brown to log this as an issue.
Refer to http://groups.google.com/group/prawn-ruby/browse_thread/thread/895460d659323544/6b9f7eb2ca1a3af8#6b9f7eb2ca1a3af8

@paramaw

This comment has been minimized.

Copy link

paramaw commented Jul 12, 2010

I'm also having the same problem, any solution to this?

@paramaw

This comment has been minimized.

@bradediger

This comment has been minimized.

Copy link
Member

bradediger commented Sep 25, 2010

This was resolved by 3ecde63.

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.