Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created January 27, 2023 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/aa85e824117735cddac52227981f2168 to your computer and use it in GitHub Desktop.
Save parzibyte/aa85e824117735cddac52227981f2168 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
pdfcpu "github.com/pdfcpu/pdfcpu/pkg/api"
)
func main() {
ubicacionOriginal := "svelte.pdf"
ubicacionNueva := "svelte_rotado.pdf"
grados := 90
err := pdfcpu.RotateFile(ubicacionOriginal, ubicacionNueva, grados, []string{}, pdfcpu.LoadConfiguration())
fmt.Printf("Error al rotar: %v", err)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment