RE: SP2013 WAS - Word-to-PDF missing Styles in TOC after

2016-05-24 Thread Rob Bayly
Part1 - 2 days of research and testing, and it's appears to be down to a 
corrupt embedded font used in the TOC Title above the TOC table
Part 2 - I'm suggesting look at part 1.

Thanks
Rob


   1. RE: SP2013 WAS - Word-to-PDF missing Styles in TOC after
  conversion (Rob Bayly)


--

Message: 1
Date: Mon, 23 May 2016 07:57:11 +
From: Rob Bayly <rob.ba...@sharingminds.com.au>
Subject: RE: SP2013 WAS - Word-to-PDF missing Styles in TOC after
conversion
To: "ozmoss@ozmoss.com" <ozmoss@ozmoss.com>
Message-ID:

<sixpr04mb06667b84b0ae5db1f02fbaeea4...@sixpr04mb0666.apcprd04.prod.outlook.com>

Content-Type: text/plain; charset="us-ascii"

Hi All,

Got a Word Automation Services issue that's not being easy to resolve.

My client has a number of documents in various libraries in on-premise SP2013. 
We're using a script to traverse the libraries and when a Word Document meets 
the criteria, pass to WAS for conversion to PDF. 

The Docx are converted to PDF successfully, however for a small number of these 
conversions (<5%) we have a couple of "rendering" flaws in the final PDF:
1. Where the Level 3 heading style used in the document IS NOT applied in the 
Table of Contents - it is however applied in the body of the document, OR 2. 
Render Artefact - where part of the title in the header appears midway down the 
page in the body of the PDF.

The server is a standalone host with separate database server, patched up to 
March 2016 CU.

The following is part of the script code used:
# Get the Word Automation Service Proxy
$wasp = Get-SPServiceApplicationProxy | where { $_.TypeName -eq "Word 
Automation Services Proxy" }
#Create the Conversion job
$conversionJob = New-Object 
Microsoft.Office.Word.Server.Conversions.ConversionJob($wasp)
# Set the credentials to use when running the conversion job.
$conversionJob.UserToken = $web.CurrentUser.UserToken
# Conversion Job Name
$conversionJob.Name = "ConvertDOCXtoPDF"+$TodaysDateFormatted
$conversionJob.Settings.OutputFormat = 
[Microsoft.Office.Word.Server.Conversions.SaveFormat]::PDF
$conversionJob.Settings.UpdateFields = $true
$conversionJob.Settings.OutputSaveBehavior = 
[Microsoft.Office.Word.Server.Conversions.SaveBehavior]::AlwaysOverwrite

I've also tried some of the additional Font options as well - no change to 
output.
$conversionJob.Settings.EmbedFonts = $true
$conversionJob.Settings.DoNotEmbedSystemFonts = $true
$conversionJob.Settings.SubsetEmbeddedFonts = $true


Thank you for your time, and I look forward to any ideas you may have to offer.


Best Regards

Rob Bayly
Support Consultant, Sharing Minds



--

___
ozmoss mailing list
ozmoss@ozmoss.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss


End of ozmoss Digest, Vol 73, Issue 1
*
___
Sponsored by Infotext - Amazing Search for Microsoft SharePoint - 
http://www.infotext.com/
ozmoss mailing list
ozmoss@ozmoss.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss


RE: SP2013 WAS - Word-to-PDF missing Styles in TOC after conversion

2016-05-23 Thread Rob Bayly
Hi All,

Got a Word Automation Services issue that's not being easy to resolve.

My client has a number of documents in various libraries in on-premise SP2013. 
We're using a script to traverse the libraries and when a Word Document meets 
the criteria, pass to WAS for conversion to PDF. 

The Docx are converted to PDF successfully, however for a small number of these 
conversions (<5%) we have a couple of "rendering" flaws in the final PDF:
1. Where the Level 3 heading style used in the document IS NOT applied in the 
Table of Contents - it is however applied in the body of the document, OR
2. Render Artefact - where part of the title in the header appears midway down 
the page in the body of the PDF.

The server is a standalone host with separate database server, patched up to 
March 2016 CU.

The following is part of the script code used:
# Get the Word Automation Service Proxy
$wasp = Get-SPServiceApplicationProxy | where { $_.TypeName -eq "Word 
Automation Services Proxy" }
#Create the Conversion job
$conversionJob = New-Object 
Microsoft.Office.Word.Server.Conversions.ConversionJob($wasp)
# Set the credentials to use when running the conversion job.
$conversionJob.UserToken = $web.CurrentUser.UserToken
# Conversion Job Name
$conversionJob.Name = "ConvertDOCXtoPDF"+$TodaysDateFormatted
$conversionJob.Settings.OutputFormat = 
[Microsoft.Office.Word.Server.Conversions.SaveFormat]::PDF
$conversionJob.Settings.UpdateFields = $true
$conversionJob.Settings.OutputSaveBehavior = 
[Microsoft.Office.Word.Server.Conversions.SaveBehavior]::AlwaysOverwrite

I've also tried some of the additional Font options as well - no change to 
output.
$conversionJob.Settings.EmbedFonts = $true
$conversionJob.Settings.DoNotEmbedSystemFonts = $true
$conversionJob.Settings.SubsetEmbeddedFonts = $true


Thank you for your time, and I look forward to any ideas you may have to offer.


Best Regards

Rob Bayly
Support Consultant, Sharing Minds

___
Sponsored by Infotext - Amazing Search for Microsoft SharePoint - 
http://www.infotext.com/
ozmoss mailing list
ozmoss@ozmoss.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss


RE: Different masterpages in site collection

2015-01-28 Thread Rob Bayly
If it's sub-sites, and not pages, then this may help. I forget where I found 
the original PowerShell script - but the following may work for updating 
sub-sites

//INDIVIDUAL
PS C:\path $web = Get-SPWeb http://site/subweb
//just to confirm it's set
PS C:\path $web
Url
---
http://site/subweb
//check current master page
PS C:\path $web.MasterUrl
/site/subweb/_catalogs/masterpage/v4.master
//set new master
PS C:\path $web.MasterUrl 
=/site/subweb/_catalogs/masterpage/NEW.master
//check it
PS C:\path $web.MasterUrl
/site/subweb//_catalogs/masterpage/NEW.master
PS C:\path $web.Update()

ALL/BATCH
foreach($subSite in (Get-SPWeb http://site).Webs) 
{ 
 $subSite.MasterURL = /site/subweb/_catalogs/masterpage/NEW.master
 $subSite.Update()
}

Regards
Rob


Today's Topics:

   1. RE: Different masterpages in site collection (Nigel Hertz)
   2. RE: Different masterpages in site collection (Paul Noone)


--

Message: 1
Date: Mon, 26 Jan 2015 20:46:18 +
From: Nigel Hertz nigel.he...@stockland.com.au
Subject: RE: Different masterpages in site collection
To: ozMOSS ozmoss@ozmoss.com
Message-ID:
8e9a6d933a414688a50743539f4dc...@cdcexh011.stocklandnet.com.au
Content-Type: text/plain; charset=utf-8

Howdy

Personally, I would set the one for ?the rest of the site? on the homepage, and 
tell it to ?reset all subsites to inherit?. Once that?s done, change it to set 
the homepage masterpage as ?live?, but DESELECT the ?reset subsites? bit.

There may be a better way, but that?s the way I did it.

From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of 
Ajay
Sent: Friday, 23 January 2015 9:30 PM
To: ozMOSS
Subject: Different masterpages in site collection

Hi guys,
i want to use 2 different masterpages in site collection, one for home page and 
other for rest of the site.

how to go about it,,, google hasn't been very helpful

thanks
ajay



Stockland Notice: If this communication has been sent to you by mistake, please 
delete and notify us. If it has been sent to you by mistake, legal privilege is 
not waived or lost and you are not entitled to use it in any way. Stockland and 
its subsidiaries reserve the right to monitor e-mail communication through its 
networks.
-- next part --
An HTML attachment was scrubbed...
URL: 
http://prdlxvm0001.codify.net/pipermail/ozmoss/attachments/20150126/9051e263/attachment-0001.html
 

--

Message: 2
Date: Tue, 27 Jan 2015 01:35:42 +
From: Paul Noone p.no...@keller.com.au
Subject: RE: Different masterpages in site collection
To: ozMOSS ozmoss@ozmoss.com
Message-ID:
5ff8bf2136ad534cafdeea7bc8cbf186a68...@ms-01.keller.com.au
Content-Type: text/plain; charset=utf-8

Is there any reason why you need a new masterpage for a single page?

I find that a layout page or customizing the page can usually overcome most 
situations.

Regards,

Paul

From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of 
Nigel Hertz
Sent: Tuesday, January 27, 2015 7:46 AM
To: ozMOSS
Subject: RE: Different masterpages in site collection

Howdy

Personally, I would set the one for ?the rest of the site? on the homepage, and 
tell it to ?reset all subsites to inherit?. Once that?s done, change it to set 
the homepage masterpage as ?live?, but DESELECT the ?reset subsites? bit.

There may be a better way, but that?s the way I did it.

From: ozmoss-boun...@ozmoss.commailto:ozmoss-boun...@ozmoss.com 
[mailto:ozmoss-boun...@ozmoss.com] On Behalf Of Ajay
Sent: Friday, 23 January 2015 9:30 PM
To: ozMOSS
Subject: Different masterpages in site collection

Hi guys,
i want to use 2 different masterpages in site collection, one for home page and 
other for rest of the site.

how to go about it,,, google hasn't been very helpful

thanks
ajay
___
Sponsored by Infotext - Amazing Search for Microsoft SharePoint - 
http://www.infotext.com/
ozmoss mailing list
ozmoss@ozmoss.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss