Skip to content

Commit

Permalink
Update github.com/CPTSLLC/pdfcpu path.
Browse files Browse the repository at this point in the history
  • Loading branch information
tlor-cpts committed Jul 27, 2021
1 parent 66517a0 commit 5ac8cdc
Show file tree
Hide file tree
Showing 138 changed files with 218 additions and 218 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ builds:
env:
- CGO_ENABLED=0
ldflags:
- '-s -w -X main.version={{.Version}} -X github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/pdfcpu.VersionStr={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{.Date}} -X main.builtBy=goreleaser'
- '-s -w -X main.version={{.Version}} -X github.com/CPTSLLC/pdfcpu/pkg/pdfcpu.VersionStr={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{.Date}} -X main.builtBy=goreleaser'
goos:
- linux
- darwin
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
FROM golang:latest as builder

# install
RUN go get github.com/CPTSLLC/pdfcpu/pdfcpu/cmd/...
WORKDIR $GOPATH/src/github.com/CPTSLLC/pdfcpu/pdfcpu/cmd/pdfcpu
RUN go get github.com/CPTSLLC/pdfcpu/cmd/...
WORKDIR $GOPATH/src/github.com/CPTSLLC/pdfcpu/cmd/pdfcpu
RUN CGO_ENABLED=0 GOOS=linux go build -a -o pdfcpu .

######## Start a new stage from scratch #######
Expand All @@ -17,7 +17,7 @@ RUN apk --no-cache add ca-certificates
WORKDIR /root/

# Copy the Pre-built binary file from the previous stage
COPY --from=builder /go/src/github.com/CPTSLLC/pdfcpu/pdfcpu/cmd/pdfcpu .
COPY --from=builder /go/src/github.com/CPTSLLC/pdfcpu/cmd/pdfcpu .

# Command to run the executable
CMD ["./pdfcpu"]
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# pdfcpu: a Go PDF processor

[![Build Status](https://travis-ci.org/pdfcpu/pdfcpu.svg?branch=master)](https://travis-ci.org/pdfcpu/pdfcpu)
[![GoDoc](https://godoc.org/github.com/CPTSLLC/pdfcpu/pdfcpu?status.svg)](https://godoc.org/github.com/CPTSLLC/pdfcpu/pdfcpu)
[![GoDoc](https://godoc.org/github.com/CPTSLLC/pdfcpu?status.svg)](https://godoc.org/github.com/CPTSLLC/pdfcpu)
[![Coverage Status](https://coveralls.io/repos/github/pdfcpu/pdfcpu/badge.svg?branch=master)](https://coveralls.io/github/pdfcpu/pdfcpu?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/CPTSLLC/pdfcpu/pdfcpu)](https://goreportcard.com/report/github.com/CPTSLLC/pdfcpu/pdfcpu)
[![Go Report Card](https://goreportcard.com/badge/github.com/CPTSLLC/pdfcpu)](https://goreportcard.com/report/github.com/CPTSLLC/pdfcpu)
[![Hex.pm](https://img.shields.io/hexpm/l/plug.svg)](https://opensource.org/licenses/Apache-2.0)
[![Latest release](https://img.shields.io/github/release/pdfcpu/pdfcpu.svg)](https://github.com/CPTSLLC/pdfcpu/pdfcpu/releases)
[![Latest release](https://img.shields.io/github/release/pdfcpu/pdfcpu.svg)](https://github.com/CPTSLLC/pdfcpu/releases)

<img src="resources/logoSmall.png" width="150">

Expand Down Expand Up @@ -65,13 +65,13 @@ The main focus lies on strong support for batch processing and scripting via a r

- The main entry point is [pdfcpu.io](https://pdfcpu.io).
- For CLI examples also go to [pdfcpu.io](https://pdfcpu.io). There you will find explanations of all the commands and their parameters.
- For API examples of all pdfcpu operations please refer to [GoDoc](https://godoc.org/github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/api).
- For API examples of all pdfcpu operations please refer to [GoDoc](https://godoc.org/github.com/CPTSLLC/pdfcpu/pkg/api).

### GoDoc

- [pdfcpu package](https://godoc.org/github.com/CPTSLLC/pdfcpu/pdfcpu)
- [pdfcpu API](https://godoc.org/github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/api)
- [pdfcpu CLI](https://godoc.org/github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/cli)
- [pdfcpu package](https://godoc.org/github.com/CPTSLLC/pdfcpu)
- [pdfcpu API](https://godoc.org/github.com/CPTSLLC/pdfcpu/pkg/api)
- [pdfcpu CLI](https://godoc.org/github.com/CPTSLLC/pdfcpu/pkg/cli)

## Reminder

Expand All @@ -90,23 +90,23 @@ The main focus lies on strong support for batch processing and scripting via a r

### Download

Get the latest binary [here](https://github.com/CPTSLLC/pdfcpu/pdfcpu/releases).
Get the latest binary [here](https://github.com/CPTSLLC/pdfcpu/releases).

### Using GOPATH

Required go version for building: go1.14 and up

```
go get github.com/CPTSLLC/pdfcpu/pdfcpu/cmd/...
cd $GOPATH/src/github.com/CPTSLLC/pdfcpu/pdfcpu/cmd/pdfcpu
go get github.com/CPTSLLC/pdfcpu/cmd/...
cd $GOPATH/src/github.com/CPTSLLC/pdfcpu/cmd/pdfcpu
go install
pdfcpu version
```

### Using Go Modules

```
git clone https://github.com/CPTSLLC/pdfcpu/pdfcpu
git clone https://github.com/CPTSLLC/pdfcpu
cd pdfcpu/cmd/pdfcpu
go install
pdfcpu version
Expand Down
2 changes: 1 addition & 1 deletion cmd/pdfcpu/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"os"
"strings"

"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/pdfcpu"
"github.com/CPTSLLC/pdfcpu/pkg/pdfcpu"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/pdfcpu/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package main
import (
"flag"

"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/log"
"github.com/CPTSLLC/pdfcpu/pkg/log"
)

func initCommandMap() {
Expand Down
4 changes: 2 additions & 2 deletions cmd/pdfcpu/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
"fmt"
"os"

"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/cli"
"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/pdfcpu"
"github.com/CPTSLLC/pdfcpu/pkg/cli"
"github.com/CPTSLLC/pdfcpu/pkg/pdfcpu"
)

var (
Expand Down
8 changes: 4 additions & 4 deletions cmd/pdfcpu/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ import (
"strconv"
"strings"

"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/api"
"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/cli"
"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/pdfcpu"
"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/pdfcpu/validate"
"github.com/CPTSLLC/pdfcpu/pkg/api"
"github.com/CPTSLLC/pdfcpu/pkg/cli"
"github.com/CPTSLLC/pdfcpu/pkg/pdfcpu"
"github.com/CPTSLLC/pdfcpu/pkg/pdfcpu/validate"
"github.com/pkg/errors"
)

Expand Down
2 changes: 1 addition & 1 deletion coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function internalDeps {

for p in $(go list -f '{{.Deps}}' $1)
do
if [[ $p == github.com/CPTSLLC/pdfcpu/pdfcpu* ]]; then
if [[ $p == github.com/CPTSLLC/pdfcpu* ]]; then
idep=$idep,$p
fi
done
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/CPTSLLC/pdfcpu/pdfcpu
module github.com/CPTSLLC/pdfcpu

go 1.14

Expand Down
2 changes: 1 addition & 1 deletion internal/corefont/metrics/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ const header = `// generated by "go run gen.go". DO NOT EDIT.
package metrics
import (
"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/types"
"github.com/CPTSLLC/pdfcpu/pkg/types"
)
`

Expand Down
2 changes: 1 addition & 1 deletion internal/corefont/metrics/standard.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package metrics

import (
"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/types"
"github.com/CPTSLLC/pdfcpu/pkg/types"
)

// WinAnsiGlyphMap is a glyph lookup table for CP1252 character codes.
Expand Down
6 changes: 3 additions & 3 deletions pkg/api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ import (
"os"
"time"

"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/log"
"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/pdfcpu"
"github.com/CPTSLLC/pdfcpu/pkg/log"
"github.com/CPTSLLC/pdfcpu/pkg/pdfcpu"

"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/pdfcpu/validate"
"github.com/CPTSLLC/pdfcpu/pkg/pdfcpu/validate"
)

// ReadContext uses an io.ReadSeeker to build an internal structure holding its cross reference table aka the Context.
Expand Down
4 changes: 2 additions & 2 deletions pkg/api/attach.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
"strings"
"time"

"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/log"
"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/pdfcpu"
"github.com/CPTSLLC/pdfcpu/pkg/log"
"github.com/CPTSLLC/pdfcpu/pkg/pdfcpu"
"github.com/pkg/errors"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/api/collect.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"os"
"time"

"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/log"
"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/pdfcpu"
"github.com/CPTSLLC/pdfcpu/pkg/log"
"github.com/CPTSLLC/pdfcpu/pkg/pdfcpu"
)

// Collect creates a custom PDF page sequence for selected pages of rs and writes the result to w.
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package api
import (
"os"

pdf "github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/pdfcpu"
pdf "github.com/CPTSLLC/pdfcpu/pkg/pdfcpu"
)

// CreatePDFFile creates a PDF file for an xRefTable and writes it to outFile.
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package api

import (
"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/pdfcpu"
"github.com/CPTSLLC/pdfcpu/pkg/pdfcpu"
"github.com/pkg/errors"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/api/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ package api
import (
"fmt"

"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/pdfcpu"
"github.com/CPTSLLC/pdfcpu/pkg/pdfcpu"
)

func ExampleValidateFile() {
Expand Down
4 changes: 2 additions & 2 deletions pkg/api/extract.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
"strings"
"time"

"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/log"
"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/pdfcpu"
"github.com/CPTSLLC/pdfcpu/pkg/log"
"github.com/CPTSLLC/pdfcpu/pkg/pdfcpu"
)

// ExtractImages dumps embedded image resources from rs into outDir for selected pages.
Expand Down
4 changes: 2 additions & 2 deletions pkg/api/fonts.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"sort"
"strings"

"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/font"
"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/log"
"github.com/CPTSLLC/pdfcpu/pkg/font"
"github.com/CPTSLLC/pdfcpu/pkg/log"
)

func isSupportedFontFile(filename string) bool {
Expand Down
4 changes: 2 additions & 2 deletions pkg/api/importImage.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
"os"
"time"

"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/log"
"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/pdfcpu"
"github.com/CPTSLLC/pdfcpu/pkg/log"
"github.com/CPTSLLC/pdfcpu/pkg/pdfcpu"
)

// ImportImages appends PDF pages containing images to rs and writes the result to w.
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"os"
"time"

"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/pdfcpu"
"github.com/CPTSLLC/pdfcpu/pkg/pdfcpu"
)

// Info returns information about rs.
Expand Down
4 changes: 2 additions & 2 deletions pkg/api/keywords.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"os"
"time"

"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/log"
pdf "github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/pdfcpu"
"github.com/CPTSLLC/pdfcpu/pkg/log"
pdf "github.com/CPTSLLC/pdfcpu/pkg/pdfcpu"
"github.com/pkg/errors"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/api/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"os"
"time"

"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/log"
"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/pdfcpu"
"github.com/CPTSLLC/pdfcpu/pkg/log"
"github.com/CPTSLLC/pdfcpu/pkg/pdfcpu"
)

// appendTo appends inFile to ctxDest's page tree.
Expand Down
4 changes: 2 additions & 2 deletions pkg/api/nup.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"os"
"time"

"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/log"
"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/pdfcpu"
"github.com/CPTSLLC/pdfcpu/pkg/log"
"github.com/CPTSLLC/pdfcpu/pkg/pdfcpu"
)

// NUp rearranges PDF pages or images into page grids and writes the result to w.
Expand Down
4 changes: 2 additions & 2 deletions pkg/api/optimize.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"os"
"time"

"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/log"
"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/pdfcpu"
"github.com/CPTSLLC/pdfcpu/pkg/log"
"github.com/CPTSLLC/pdfcpu/pkg/pdfcpu"
"github.com/pkg/errors"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/api/pages.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"os"
"time"

"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/log"
"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/pdfcpu"
"github.com/CPTSLLC/pdfcpu/pkg/log"
"github.com/CPTSLLC/pdfcpu/pkg/pdfcpu"
"github.com/pkg/errors"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/api/permissions.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"os"
"time"

"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/log"
"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/pdfcpu"
"github.com/CPTSLLC/pdfcpu/pkg/log"
"github.com/CPTSLLC/pdfcpu/pkg/pdfcpu"
"github.com/pkg/errors"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/api/properties.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"os"
"time"

"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/log"
pdf "github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/pdfcpu"
"github.com/CPTSLLC/pdfcpu/pkg/log"
pdf "github.com/CPTSLLC/pdfcpu/pkg/pdfcpu"
"github.com/pkg/errors"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/api/rotate.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"os"
"time"

"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/log"
"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/pdfcpu"
"github.com/CPTSLLC/pdfcpu/pkg/log"
"github.com/CPTSLLC/pdfcpu/pkg/pdfcpu"
)

// Rotate rotates selected pages of rs clockwise by rotation degrees and writes the result to w.
Expand Down
4 changes: 2 additions & 2 deletions pkg/api/selectPages.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"strconv"
"strings"

"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/log"
pdf "github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/pdfcpu"
"github.com/CPTSLLC/pdfcpu/pkg/log"
pdf "github.com/CPTSLLC/pdfcpu/pkg/pdfcpu"
"github.com/pkg/errors"
)

Expand Down
6 changes: 3 additions & 3 deletions pkg/api/split.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import (
"strings"
"time"

"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/log"
"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/pdfcpu"
pdf "github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/pdfcpu"
"github.com/CPTSLLC/pdfcpu/pkg/log"
"github.com/CPTSLLC/pdfcpu/pkg/pdfcpu"
pdf "github.com/CPTSLLC/pdfcpu/pkg/pdfcpu"
"github.com/pkg/errors"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/api/stamp.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import (
"os"
"time"

"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/log"
"github.com/CPTSLLC/pdfcpu/pdfcpu/pkg/pdfcpu"
"github.com/CPTSLLC/pdfcpu/pkg/log"
"github.com/CPTSLLC/pdfcpu/pkg/pdfcpu"
"github.com/pkg/errors"
)

Expand Down

0 comments on commit 5ac8cdc

Please sign in to comment.