@@ -299,7 +299,7 @@ func pageInfo(info *PDFInfo, selectedPages types.IntSet) ([]string, error) {
299299 return ss , nil
300300 }
301301
302- s := "Page size :"
302+ s := "Page sizes :"
303303 for d := range info .PageDimensions {
304304 dc := d .ConvertToUnit (info .Unit )
305305 ss = append (ss , fmt .Sprintf ("%21s %.2f x %.2f %s" , s , dc .Width , dc .Height , info .UnitString ))
@@ -309,40 +309,42 @@ func pageInfo(info *PDFInfo, selectedPages types.IntSet) ([]string, error) {
309309}
310310
311311type PDFInfo struct {
312- FileName string `json:"source,omitempty"`
313- Version string `json:"version"`
314- PageCount int `json:"pages"`
315- PageBoundaries []model.PageBoundaries `json:"-"`
316- PageDimensions map [types.Dim ]bool `json:"-"`
317- Title string `json:"title"`
318- Author string `json:"author"`
319- Subject string `json:"subject"`
320- Producer string `json:"producer"`
321- Creator string `json:"creator"`
322- CreationDate string `json:"creationDate"`
323- ModificationDate string `json:"modificationDate"`
324- PageMode string `json:"pageMode,omitempty"`
325- PageLayout string `json:"pageLayout,omitempty"`
326- ViewerPref * model.ViewerPreferences `json:"viewerPreferences,omitempty"`
327- Keywords []string `json:"keywords"`
328- Properties map [string ]string `json:"properties"`
329- Tagged bool `json:"tagged"`
330- Hybrid bool `json:"hybrid"`
331- Linearized bool `json:"linearized"`
332- UsingXRefStreams bool `json:"usingXRefStreams"`
333- UsingObjectStreams bool `json:"usingObjectStreams"`
334- Watermarked bool `json:"watermarked"`
335- Thumbnails bool `json:"thumbnails"`
336- Form bool `json:"form"`
337- Signatures bool `json:"signatures"`
338- AppendOnly bool `json:"appendOnly"`
339- Outlines bool `json:"bookmarks"`
340- Names bool `json:"names"`
341- Encrypted bool `json:"encrypted"`
342- Permissions int `json:"permissions"`
343- Attachments []model.Attachment `json:"attachments,omitempty"`
344- Unit types.DisplayUnit `json:"-"`
345- UnitString string `json:"-"`
312+ FileName string `json:"source,omitempty"`
313+ Version string `json:"version"`
314+ PageCount int `json:"pageCount"`
315+ PageBoundaries []model.PageBoundaries `json:"-"`
316+ Boundaries map [string ]model.PageBoundaries `json:"pageBoundaries,omitempty"`
317+ PageDimensions map [types.Dim ]bool `json:"-"`
318+ Dimensions []types.Dim `json:"pageSizes,omitempty"`
319+ Title string `json:"title"`
320+ Author string `json:"author"`
321+ Subject string `json:"subject"`
322+ Producer string `json:"producer"`
323+ Creator string `json:"creator"`
324+ CreationDate string `json:"creationDate"`
325+ ModificationDate string `json:"modificationDate"`
326+ PageMode string `json:"pageMode,omitempty"`
327+ PageLayout string `json:"pageLayout,omitempty"`
328+ ViewerPref * model.ViewerPreferences `json:"viewerPreferences,omitempty"`
329+ Keywords []string `json:"keywords"`
330+ Properties map [string ]string `json:"properties"`
331+ Tagged bool `json:"tagged"`
332+ Hybrid bool `json:"hybrid"`
333+ Linearized bool `json:"linearized"`
334+ UsingXRefStreams bool `json:"usingXRefStreams"`
335+ UsingObjectStreams bool `json:"usingObjectStreams"`
336+ Watermarked bool `json:"watermarked"`
337+ Thumbnails bool `json:"thumbnails"`
338+ Form bool `json:"form"`
339+ Signatures bool `json:"signatures"`
340+ AppendOnly bool `json:"appendOnly"`
341+ Outlines bool `json:"bookmarks"`
342+ Names bool `json:"names"`
343+ Encrypted bool `json:"encrypted"`
344+ Permissions int `json:"permissions"`
345+ Attachments []model.Attachment `json:"attachments,omitempty"`
346+ Unit types.DisplayUnit `json:"-"`
347+ UnitString string `json:"unit"`
346348}
347349
348350func (info PDFInfo ) renderKeywords (ss * []string ) error {
0 commit comments