I've asked this question before but did not get an answer so I'll ask it again.
Is there a way to automate the conversion of each page in a document into a bitmap before I publish it to PDF? I don't mean exporting each page to bitmap.
Here's some things you can try... go to file /save as/ then save in a bitmap format this might save the complete file as a bitmap including all your other pages or select all go to bitmaps and select convert to bitmaps but you will have to do this for every page
The question I have is why do you want to do this?
Hi.
This will do it but you'll have to adjust the parameter of the bitmap conversion function. Easy to do with a simple record macro.
Record a macro with desired convert to bitmap option on a selected item of any page, and switch out the line part:
ConvertToBitmapEx cdrRGBColorImage, False, False, 150, cdrNormalAntiAliasing, True, False, 95
with the recorded part
Here's the macro.
Sub pagesToBitmap() Dim p As Page, sr As ShapeRange, s As Shape For Each p In ActiveDocument.Pages p.Activate Set sr = ActivePage.Shapes.All If sr.count > 0 Then Set s = sr.Group s.ConvertToBitmapEx cdrRGBColorImage, False, False, 150, cdrNormalAntiAliasing, True, False, 95 End If Next pEnd Sub
~John
RunFlaCruiser said: Hi. This will do it but you'll have to adjust the parameter of the bitmap conversion function. Easy to do with a simple record macro. Record a macro with desired convert to bitmap option on a selected item of any page, and switch out the line part: ConvertToBitmapEx cdrRGBColorImage, False, False, 150, cdrNormalAntiAliasing, True, False, 95 with the recorded part Here's the macro. Sub pagesToBitmap() Dim p As Page, sr As ShapeRange, s As Shape For Each p In ActiveDocument.Pages p.Activate Set sr = ActivePage.Shapes.All If sr.count > 0 Then Set s = sr.Group s.ConvertToBitmapEx cdrRGBColorImage, False, False, 150, cdrNormalAntiAliasing, True, False, 95 End If Next pEnd Sub ~John
signcoartdtp said:you are fantastic.
The cool but simple thing about this code, a fun little learning tip.
Notice how we take all items on the page by setting and object which we declared as sr
Set sr = ActivePage.Shapes.All
And we convert all of this into a single shape, while grouping at the same time.
Set s = sr.Group
Now we can simply reference s as a single shape and use most functions and properties for a shape!
Cool!
RunFlaCruiser said:This will do it but you'll have to adjust the parameter of the bitmap conversion function.
Some ideas