Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6154187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:13:15+00:00 2026-05-23T20:13:15+00:00

I create an Impress presentation from a series of image files. I can create

  • 0

I create an Impress presentation from a series of image files. I can create a Page and insert the GraphicObjectShape without any problem, but got stuck when I have to size the shape containing the image.

My problem is that I have no clue what sizes should I use. Of course I could go with a trial and error process, but it would not be very professional would it?

My questions: what is the size of the new Page I create in pixels? How to access the function “Original Size” which can be found in the picture’s context menu?

In the Page Setup I see a size of 11.02″ x 8.27″ – Is there any guarantee that all future versions will use this size when I create a new document and a new page within?

It would be interesting to know what size the image file should be to fit the whole page.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T20:13:16+00:00Added an answer on May 23, 2026 at 8:13 pm

    It seems that raster images are loaded with a 96 DPI resolution. If you are using the default page size for Impress (11.02″ x 8.27″) then the fully fitting raster image size (in pixels) is:

    1058 x 794

    Also, if you stick with this size (as it is probably the most compatible choice for example when you are saving to PPT), do not rely on the fact that this is the default. After document is created you can set the size of the slides by setting the Width and Height property of any page (it seems that all other pages going to follow after you resize one of them).

    The API uses a 100/mm scale. 11.02 iches are 280 mm, so width is 280 * 100 = 28000, height is 21000.

    Java example to resize the presentaion to 11.02″ x 8.27″ and insert (a preferably 4:3) image to fit the whole page:

    XDrawPage page;
    XMultiServiceFactory factory;
    
    // ... setting up the environment and opening document
    
    // resize the page (and all other pages) to our default size
    XPropertySet pagePropSet = (XPropertySet)UnoRuntime.queryInterface(XPropertySet.class, page);
    pagePropSet.setPropertyValue("Width", 28000);
    pagePropSet.setPropertyValue("Height", 21000);
    
    // create GraphicObjectShape with the size of the page in the top-left corner
    Object picture = factory.createInstance("com.sun.star.drawing.GraphicObjectShape");
    XShape pictureShape = (XShape)UnoRuntime.queryInterface(XShape.class, picture);
    pictureShape.setSize(new Size(28000, 21000));
    pictureShape.setPosition(new Point(0, 0));
    
    // load the image file into our the shape
    XPropertySet propSet = (XPropertySet)UnoRuntime.queryInterface(XPropertySet.class, pictureShape);
    propSet.setPropertyValue("GraphicURL", new File("c:\\Users\\Vbence\\Downloads\\slide.png").toURI().toURL().toString());
    
    // add the shape to the page
    page.add(pictureShape);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

impress.js is a new web presentation written using Javascript. I want to create custom
I'm looking for a JavaScript Library similar to impress.js, with which I can create
Create facebook app Using a cURL to post a message from an App but
CREATE DATABASE [JKamdar_Soft] ON PRIMARY ( NAME = N'JKamdar_Soft', FILENAME = N'C:\Program Files\Microsoft SQL
Create Trigger: SELECT @oldVersionId = (SELECT DISTINCT VERSION_ID FROM Deleted) SELECT @newVersionId = (SELECT
// create a style element $(#main).html('<style id=custom_persona_css></style>'); $(#custom_persona_css).append('#abc{ color:#000000; }'); As you can tell,
CREATE TABLE tablea ( id char(25) NULL, qid int(11) NULL ) GO INSERT INTO
I need some advice. I know how to solve this problem clumsily, but I
CREATE TABLE TEMP25 ( STATUS VARCHAR2(200 BYTE) ); Insert into TEMP25 (STATUS) Values ('PENDING');
create or replace trigger insert_test_id before insert on test where(test.name='Ash') begin insert into test(s_no)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.