@@ -230,7 +230,167 @@ public function addOriginalDocumentAsStream(): self
230230 }
231231
232232 /**
233- * Ignores each sheet’s paper size, print ranges and shown/hidden status
233+ * Specifies how the document shall be displayed when opened. Possible
234+ * values are: "document", "outline", "thumbnails".
235+ */
236+ public function initialView (string $ view ): self
237+ {
238+ $ this ->formValue ('initialView ' , $ view );
239+
240+ return $ this ;
241+ }
242+
243+ /**
244+ * Specifies the page on which a PDF document should be opened in the
245+ * viewer.
246+ */
247+ public function initialPage (int $ page ): self
248+ {
249+ $ this ->formValue ('initialPage ' , $ page );
250+
251+ return $ this ;
252+ }
253+
254+ /**
255+ * Specifies the magnification to use when the document is opened.
256+ * Possible values are: "default", "fitVisible", "fitWidth", "fitPage",
257+ * "fitActualSize".
258+ */
259+ public function magnification (string $ magnification ): self
260+ {
261+ $ this ->formValue ('magnification ' , $ magnification );
262+
263+ return $ this ;
264+ }
265+
266+ /**
267+ * Specifies the zoom value to use when the document is opened.
268+ */
269+ public function zoom (int $ zoom ): self
270+ {
271+ $ this ->formValue ('zoom ' , $ zoom );
272+
273+ return $ this ;
274+ }
275+
276+ /**
277+ * Specifies the page layout to use when the document is opened. Possible
278+ * values are: "default", "singlePage", "continuous", "continuousFacing".
279+ */
280+ public function pageLayout (string $ layout ): self
281+ {
282+ $ this ->formValue ('pageLayout ' , $ layout );
283+
284+ return $ this ;
285+ }
286+
287+ /**
288+ * Specifies that the first page on the left side of the viewer should be
289+ * displayed in a two-column layout.
290+ */
291+ public function firstPageOnLeft (): self
292+ {
293+ $ this ->formValue ('firstPageOnLeft ' , true );
294+
295+ return $ this ;
296+ }
297+
298+ /**
299+ * Specifies that the PDF viewer window should be resized to fit the size
300+ * of the first page of the document.
301+ */
302+ public function resizeWindowToInitialPage (): self
303+ {
304+ $ this ->formValue ('resizeWindowToInitialPage ' , true );
305+
306+ return $ this ;
307+ }
308+
309+ /**
310+ * Specifies that the PDF viewer window should be centered on the screen.
311+ */
312+ public function centerWindow (): self
313+ {
314+ $ this ->formValue ('centerWindow ' , true );
315+
316+ return $ this ;
317+ }
318+
319+ /**
320+ * Specifies that the PDF document should be displayed in full-screen mode.
321+ */
322+ public function openInFullScreenMode (): self
323+ {
324+ $ this ->formValue ('openInFullScreenMode ' , true );
325+
326+ return $ this ;
327+ }
328+
329+ /**
330+ * Specifies that the title of the document should be displayed in the
331+ * title bar of the viewer.
332+ */
333+ public function displayPDFDocumentTitle (): self
334+ {
335+ $ this ->formValue ('displayPDFDocumentTitle ' , true );
336+
337+ return $ this ;
338+ }
339+
340+ /**
341+ * Specifies that the viewer's menu bar should be hidden.
342+ */
343+ public function hideViewerMenubar (): self
344+ {
345+ $ this ->formValue ('hideViewerMenubar ' , true );
346+
347+ return $ this ;
348+ }
349+
350+ /**
351+ * Specifies that the viewer's toolbar should be hidden.
352+ */
353+ public function hideViewerToolbar (): self
354+ {
355+ $ this ->formValue ('hideViewerToolbar ' , true );
356+
357+ return $ this ;
358+ }
359+
360+ /**
361+ * Specifies that the viewer's window controls should be hidden.
362+ */
363+ public function hideViewerWindowControls (): self
364+ {
365+ $ this ->formValue ('hideViewerWindowControls ' , true );
366+
367+ return $ this ;
368+ }
369+
370+ /**
371+ * Specifies whether to use transition effects when displaying the
372+ * document.
373+ */
374+ public function useTransitionEffects (): self
375+ {
376+ $ this ->formValue ('useTransitionEffects ' , true );
377+
378+ return $ this ;
379+ }
380+
381+ /**
382+ * Specifies the number of bookmark levels to display in the viewer when
383+ * the document is opened.
384+ */
385+ public function openBookmarkLevels (int $ levels ): self
386+ {
387+ $ this ->formValue ('openBookmarkLevels ' , $ levels );
388+
389+ return $ this ;
390+ }
391+
392+ /**
393+ * Ignores each sheet's paper size, print ranges and shown/hidden status
234394 * and puts every sheet (even hidden sheets) on exactly one page.
235395 */
236396 public function singlePageSheets (): self
0 commit comments