This is the way you could do it in VBA. This can likely be ported to PHP fairly simply.
This is the way you could do it in VBA. This can likely be ported to PHP fairly simply. Sub RemoveFirstPageAndAddHeaderFooter() Dim d As Document Set d = ActiveDocument Dim pageOne As Range Set pageOne = d.
Bookmarks("\page"). Range pageOne. Select Selection.
Delete d. Sections(1). Headers(1).Range.
Text = "Some text" d. Sections(1). Footers(1).Range.InlineShapes.
AddPicture "C:\beigeplum. Jpg", False, True End Sub Note on the ...InlineShapes. AddPicture - the onus would be on you to ensure the picture is the right size.
If you want more control over this, you would use . Footers(1).Shapes. AddPicture instead as that let's you set the width/height, top/left, etc.
Try { $word = new COM("word. Application") //$word = new COM("C:\x. Docx"); or die("couldnt create an instance of word"); //bring word to the front $word->Visible = 1; //open a word document $word->Documents->Open("file.
Docx"); // remove first page $range = $word->ActiveDocument->Bookmarks("\page"); $range->Select(); $word->Selection->Delete(); //save the document as docx $word->Documents1->SaveAs("modified_file. Docx", 12); // SaveAs('filename', format) // format: 0 - same? , 1 - doc?
, 2 - text, 4 - text other encoding } catch(Exception $e) { echo "error class.document. Php - convert_to_docx: $e 20100816.01714"; } //close word if($word) $word->Quit(); //free object resources //$word->Release(); $word = null.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.