As its very name implies, PBKDF is a KDF, a key derivation function. It's a hash function – it doesn't encrypt anything, and it's not (realistically) invertible. Whatever you did with PBKDF wasn't encryption, it was hashing.
You can use PBKDF to generate a key used for symmetric encryption and decryption, but how you use that key is beyond the responsibility and capabilities of PBKDF.
This gives you a key. You'll need to give this key to an appropriate encryption algorithm.
If you already have an encrypted file, check exactly what algorithm and block mode it needs. You'll get garbage if you don't match existing algorithm exactly.
If you're writing something from scratch, check AES and ChaCha.