iainbrighton / PScribo

PowerShell documentation framework
MIT License
230 stars 35 forks source link

Add Image as Base64 #86

Closed itamartz closed 4 years ago

itamartz commented 5 years ago

I saw in the about_plugin that Image is supported in Base64String. Can you share an Example on how to add Image to a document?

Tnx

Itamar

mc1903 commented 5 years ago

@iainbrighton An example would be really helpful if you have time. Cheers. M

iainbrighton commented 5 years ago

@itamartz @mc1903 I have now published the image support to the dev branch and see the example here. Feel free to download the dev version and have a play (it's not yet in the published module/master branch)

itamartz commented 5 years ago

Hi, I just try your Example 31 And I got this error:

[image: image.png]

Clean VM With OUT Word Install on the Machine. I got this error also when I try Html as Format.

Br, Itamar

On Fri, Apr 19, 2019 at 6:05 PM Iain Brighton notifications@github.com wrote:

@itamartz https://github.com/itamartz @mc1903 https://github.com/mc1903 I have now published the image support to the dev branch and see the example here https://github.com/iainbrighton/PScribo/blob/dev/Examples/Example31.ps1. Feel free to download the dev version and have a play (it's not yet in the published module/master branch)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iainbrighton/PScribo/issues/86#issuecomment-484923823, or mute the thread https://github.com/notifications/unsubscribe-auth/ACNZ6J4QIRDBD25AMCLGYT3PRHNR7ANCNFSM4GXFXWQQ .

itamartz commented 5 years ago

I get the error But On the desktop I can see the files. If I open I can see your Soccer and the Links.

On Tue, Apr 30, 2019 at 1:09 PM Itamar Tziger i0546746147@gmail.com wrote:

Hi, I just try your Example 31 And I got this error:

[image: image.png]

Clean VM With OUT Word Install on the Machine. I got this error also when I try Html as Format.

Br, Itamar

On Fri, Apr 19, 2019 at 6:05 PM Iain Brighton notifications@github.com wrote:

@itamartz https://github.com/itamartz @mc1903 https://github.com/mc1903 I have now published the image support to the dev branch and see the example here https://github.com/iainbrighton/PScribo/blob/dev/Examples/Example31.ps1. Feel free to download the dev version and have a play (it's not yet in the published module/master branch)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iainbrighton/PScribo/issues/86#issuecomment-484923823, or mute the thread https://github.com/notifications/unsubscribe-auth/ACNZ6J4QIRDBD25AMCLGYT3PRHNR7ANCNFSM4GXFXWQQ .

iainbrighton commented 5 years ago

@itamartz I can't see what error you are getting. Can you post the error and what Windows/PowerShell versions you are using?

itamartz commented 5 years ago

Can you supply your email I Will send you the Screen Shoot?

Win 10 1709 Build 16299.15

This is the Text for the Error - Export from Snagit

PS C:\Windows\system32> C:\Program Files\WindowsPowerShell\Modules\PScribo\Examples\Example31.ps! At line:190 char:35

On Tue, Apr 30, 2019 at 5:50 PM Iain Brighton notifications@github.com wrote:

@itamartz https://github.com/itamartz I can't see what error you are getting. Can you post the error and what Windows/PowerShell versions you are using?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iainbrighton/PScribo/issues/86#issuecomment-487982854, or mute the thread https://github.com/notifications/unsubscribe-auth/ACNZ6JZV7DJGNTVV5D4GXV3PTBMBZANCNFSM4GXFXWQQ .

iainbrighton commented 5 years ago

No problem - Iainbrighton(at)hotmail(dot)com

iainbrighton commented 5 years ago

@itamartz Strange - This is on a fresh Windows 1709 build, downloaded dev branch:

PS C:\Users\Iain\Documents\WindowsPowerShell\Modules\PScribo> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.16299.1004
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.16299.1004
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

PS C:\Users\Iain\Documents\WindowsPowerShell\Modules\PScribo> .\Examples\Example31.ps1 -PassThru

    Directory: C:\Users\Iain\Desktop

Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a----       02/05/2019     14:51         114821 PScribo Example 31.docx

PS C:\Users\Iain\Documents\WindowsPowerShell\Modules\PScribo>

It is patched, but I will try an unpatched 1709 build and see what happens..

itamartz commented 5 years ago

I run the Example from the ISE.

On Thu, May 2, 2019 at 11:21 PM Iain Brighton notifications@github.com wrote:

@itamartz https://github.com/itamartz Strange - This is on a fresh Windows 1709 build, downloaded dev branch:

PS C:\Users\Iain\Documents\WindowsPowerShell\Modules\PScribo> $PSVersionTable

Name Value---- ----- PSVersion 5.1.16299.1004 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.16299.1004 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1

PS C:\Users\Iain\Documents\WindowsPowerShell\Modules\PScribo> .\Examples\Example31.ps1 -PassThru

Directory: C:\Users\Iain\Desktop

Mode LastWriteTime Length Name---- ------------- ------ -----a---- 02/05/2019 14:51 114821 PScribo Example 31.docx

PS C:\Users\Iain\Documents\WindowsPowerShell\Modules\PScribo>

It is patched, but I will try an unpatched 1709 build and see what happens..

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iainbrighton/PScribo/issues/86#issuecomment-488818027, or mute the thread https://github.com/notifications/unsubscribe-auth/ACNZ6JZ73S5XWEZ3BNTKARDPTNENHANCNFSM4GXFXWQQ .

iainbrighton commented 5 years ago

Wierd. Works in a stock 1709 build in the ISE too:

image

itamartz commented 5 years ago

From ise open the example file then run it.

On Fri, May 3, 2019, 10:06 Iain Brighton notifications@github.com wrote:

Wierd. Works in a stock 1709 build in the ISE too:

[image: image] https://user-images.githubusercontent.com/7023258/57123606-4dc98180-6d7a-11e9-9e64-ebca1857ef45.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iainbrighton/PScribo/issues/86#issuecomment-488975147, or mute the thread https://github.com/notifications/unsubscribe-auth/ACNZ6J3ZSA34OBRULDTZZPLPTPP7RANCNFSM4GXFXWQQ .

iainbrighton commented 4 years ago

Hi @itamartz are you still struggling with this? I can open the file and run it successfully from the ISE on Win10 1909 x64 too

itamartz commented 4 years ago

I not try, I will try next week if I have times. Tnx

On Sat, Feb 22, 2020, 19:38 Iain Brighton notifications@github.com wrote:

Hi @itamartz https://github.com/itamartz are you still struggling with this? I can open the file and run it successfully from the ISE on Win10 1909 x64 too

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iainbrighton/PScribo/issues/86?email_source=notifications&email_token=ACNZ6J7QE3L2NIWRITY6H7LREFPKFA5CNFSM4GXFXWQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMVGDRI#issuecomment-589980101, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACNZ6J77QG5EGXZFYNJRAW3REFPKFANCNFSM4GXFXWQQ .

iainbrighton commented 4 years ago

OK. Please feel free to reopen the issue if you still have problems (v0.7.26 has been published to the PSGallery)