Jump to content
Sign in to follow this  
Heretic87

Resize an image before pasting it into a word doc

Recommended Posts

Heretic87

Hello everyone, I made a simple script that paste an image into a word file in the A6 format.

I want to resize the image, which is copied from a pdf, before pasting it into the word file, is it doable?

What do I need to do?

Share this post


Link to post
Share on other sites
water

You can either do it before you copy the image to Word. Search the forum for "image resize" and you will find a lot of threads like

Or do it after you copied the image to Word by using the Shape or InlineShape object.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
UEZ

You can use the GDI+ library to resize the image and the word udf to paste it into the word file to achieve your goal.

What do you mean with copied from a pdf exactly? Copied to the clipboard? To a file?

Br,

UEZ

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites
Heretic87

Copied from the pdf and stored in the clipboard.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×